Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8964d4

Browse files
committed
Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.
1 parent 1c24f9c commit e8964d4

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

acconfig.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
/* Define to `long' if <time.h> doesn't define. */
2626
#undef clock_t
2727

28+
/* Defined on Solaris to see additional function prototypes. */
29+
#undef __EXTENSIONS__
30+
2831
/* Define if getpgrp() must be called as getpgrp(0). */
2932
#undef GETPGRP_HAVE_ARG
3033

config.h.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@
9090
/* Define to `long' if <time.h> doesn't define. */
9191
#undef clock_t
9292

93+
/* Defined on Solaris to see additional function prototypes. */
94+
#undef __EXTENSIONS__
95+
9396
/* Define if getpgrp() must be called as getpgrp(0). */
9497
#undef GETPGRP_HAVE_ARG
9598

configure.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,13 @@ Monterey*)
194194
case $CC in
195195
cc) CC="$CC -Wl,-Bexport";;
196196
esac;;
197+
SunOS*)
198+
# Some functions have a prototype only with that define, e.g. confstr
199+
AC_DEFINE(__EXTENSIONS__)
200+
;;
197201
esac
198202

203+
199204
AC_SUBST(LIBRARY)
200205
AC_MSG_CHECKING(LIBRARY)
201206
if test -z "$LIBRARY"

0 commit comments

Comments
 (0)