bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SIGPOLL on Darwin


From: Paul Eggert
Subject: Re: SIGPOLL on Darwin
Date: Tue, 31 Jan 2012 07:51:54 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0

On 01/31/2012 07:19 AM, Reuben Thomas wrote:
> SIGPOLL seems to be unimplemented on Darwin

I don't offhand see an easy way to implement it in Gnulib,
so perhaps it's better that Gnulib doesn't define it.
(Sorry, I don't know the context.)

> gnulib does not define _POSIX_C_SOURCE on Darwin, which is
> necessary in order to get some POSIX features.

This seems like an oversight.  Would this fix things?

diff --git a/m4/extensions.m4 b/m4/extensions.m4
index 0bfaef6..58280cf 100644
--- a/m4/extensions.m4
+++ b/m4/extensions.m4
@@ -75,6 +75,10 @@ AC_BEFORE([$0], [AC_RUN_IFELSE])dnl
 #ifndef _GNU_SOURCE
 # undef _GNU_SOURCE
 #endif
+/* Enable POSIX symbols on MacOS X.  */
+#ifndef _POSIX_C_SOURCE
+# undef _POSIX_C_SOURCE
+#endif
 /* Enable threading extensions on Solaris.  */
 #ifndef _POSIX_PTHREAD_SEMANTICS
 # undef _POSIX_PTHREAD_SEMANTICS



reply via email to

[Prev in Thread] Current Thread [Next in Thread]