-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
diff --git a/Modules/fcntlmodule.c b/Modules/fcntlmodule.c | ||
index 2bca40213c6..59dab31bc40 100644 | ||
--- a/Modules/fcntlmodule.c | ||
+++ b/Modules/fcntlmodule.c | ||
@@ -628,6 +628,15 @@ all_ins(PyObject* m) | ||
#endif | ||
|
||
#ifdef HAVE_STROPTS_H | ||
+ | ||
+#if defined(sun) || defined(__sun) | ||
+ #ifndef STR | ||
+ /* for some reason, the preprocessor does not resolve this symbol */ | ||
+ /* from /usr/include/sys/stropts.h on Solaris 11 */ | ||
+ #define STR ('S'<<8) | ||
+ #endif | ||
+#endif | ||
+ | ||
/* Unix 98 guarantees that these are in stropts.h. */ | ||
if (PyModule_AddIntMacro(m, I_PUSH)) return -1; | ||
if (PyModule_AddIntMacro(m, I_POP)) return -1; |