Commit e8964d49 authored by Martin v. Löwis's avatar Martin v. Löwis

Define __EXTENSIONS__ on Solaris. Fixes posixmodule error in bug #232787.

parent 1c24f9c8
...@@ -25,6 +25,9 @@ ...@@ -25,6 +25,9 @@
/* Define to `long' if <time.h> doesn't define. */ /* Define to `long' if <time.h> doesn't define. */
#undef clock_t #undef clock_t
/* Defined on Solaris to see additional function prototypes. */
#undef __EXTENSIONS__
/* Define if getpgrp() must be called as getpgrp(0). */ /* Define if getpgrp() must be called as getpgrp(0). */
#undef GETPGRP_HAVE_ARG #undef GETPGRP_HAVE_ARG
......
...@@ -90,6 +90,9 @@ ...@@ -90,6 +90,9 @@
/* Define to `long' if <time.h> doesn't define. */ /* Define to `long' if <time.h> doesn't define. */
#undef clock_t #undef clock_t
/* Defined on Solaris to see additional function prototypes. */
#undef __EXTENSIONS__
/* Define if getpgrp() must be called as getpgrp(0). */ /* Define if getpgrp() must be called as getpgrp(0). */
#undef GETPGRP_HAVE_ARG #undef GETPGRP_HAVE_ARG
......
...@@ -194,8 +194,13 @@ Monterey*) ...@@ -194,8 +194,13 @@ Monterey*)
case $CC in case $CC in
cc) CC="$CC -Wl,-Bexport";; cc) CC="$CC -Wl,-Bexport";;
esac;; esac;;
SunOS*)
# Some functions have a prototype only with that define, e.g. confstr
AC_DEFINE(__EXTENSIONS__)
;;
esac esac
AC_SUBST(LIBRARY) AC_SUBST(LIBRARY)
AC_MSG_CHECKING(LIBRARY) AC_MSG_CHECKING(LIBRARY)
if test -z "$LIBRARY" if test -z "$LIBRARY"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment