[beast/win32] Applied 002_poll_constants.diff: there is no poll() on windows.
- From: Stefan Westerfeld <stw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [beast/win32] Applied 002_poll_constants.diff: there is no poll() on windows.
- Date: Thu, 27 Aug 2009 08:44:34 +0000 (UTC)
commit c98129ce915d89320cad04961d760d92105bfa8b
Author: Stefan Westerfeld <stefan space twc de>
Date: Thu Aug 27 08:44:10 2009 +0200
Applied 002_poll_constants.diff: there is no poll() on windows.
Since there is no poll(), the poll() related constants POLLIN, ..., do not
exist either.
birnet/configure.inc | 40 +++++++++++++++++++++-------------------
1 files changed, 21 insertions(+), 19 deletions(-)
---
diff --git a/birnet/configure.inc b/birnet/configure.inc
index 6aa3640..2e17f20 100644
--- a/birnet/configure.inc
+++ b/birnet/configure.inc
@@ -42,25 +42,6 @@ AC_DEFUN([AC_BIRNET_REQUIREMENTS],
BIRNET_SIZEOF_LONG="$glib_cv_sizeof_birnet_long"
AC_SUBST(BIRNET_SIZEOF_LONG) dnl # for birnetconfig.h
- dnl # --- POLL* ---
- poll_headers=["
- #define _GNU_SOURCE
- #include <sys/types.h>
- #include <sys/poll.h>
- "]
- AC_MSG_CHECKING([for POLL constants])
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLIN], $poll_headers)
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLPRI], $poll_headers)
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLOUT], $poll_headers)
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLRDNORM], $poll_headers) # needs _GNU_SOURCE on linux
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLRDBAND], $poll_headers) # needs _GNU_SOURCE on linux
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLWRNORM], $poll_headers) # needs _GNU_SOURCE on linux
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLWRBAND], $poll_headers) # needs _GNU_SOURCE on linux
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLERR], $poll_headers)
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLHUP], $poll_headers)
- BIRNET_SUBST_COMPUTED_SYSVAL([POLLNVAL], $poll_headers)
- AC_MSG_RESULT([done])
-
dnl # --- OS/Win32 detection ---
dnl # needs AC_CANONICAL_HOST
test -z "$host" && {
@@ -83,6 +64,27 @@ AC_DEFUN([AC_BIRNET_REQUIREMENTS],
AC_SUBST(BIRNET_OS_CHOICES)
AC_DEFINE_UNQUOTED(BIRNET_OS_$BIRNET_OS, "1", [Win32 detection])
+ if test "$BIRNET_OS" != "WIN32"; then
+ dnl # --- POLL* ---
+ poll_headers=["
+ #define _GNU_SOURCE
+ #include <sys/types.h>
+ #include <sys/poll.h>
+ "]
+ AC_MSG_CHECKING([for POLL constants])
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLIN], $poll_headers)
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLPRI], $poll_headers)
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLOUT], $poll_headers)
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLRDNORM], $poll_headers) # needs _GNU_SOURCE on linux
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLRDBAND], $poll_headers) # needs _GNU_SOURCE on linux
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLWRNORM], $poll_headers) # needs _GNU_SOURCE on linux
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLWRBAND], $poll_headers) # needs _GNU_SOURCE on linux
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLERR], $poll_headers)
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLHUP], $poll_headers)
+ BIRNET_SUBST_COMPUTED_SYSVAL([POLLNVAL], $poll_headers)
+ AC_MSG_RESULT([done])
+ fi
+
dnl # --- sizeof threading structs ---
GLIB_SIZEOF([#include <pthread.h>], pthread_mutex_t, pth_mutex_t)
BIRNET_SIZEOF_PTH_MUTEX_T="$glib_cv_sizeof_pth_mutex_t"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]