pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/libnbcompat/files don't include poll.h or sys...
details: https://anonhg.NetBSD.org/pkgsrc/rev/7d3e0512f043
branches: trunk
changeset: 475237:7d3e0512f043
user: grant <grant%pkgsrc.org@localhost>
date: Wed May 12 21:50:43 2004 +0000
description:
don't include poll.h or sys/poll.h, but instead, undefine HAVE_POLL_H
and HAVE_SYS_POLL_H if we don't have a native poll() implementation.
prevents including of libnbcompat's poll.h as well as the system's
poll.h where we should be ignoring the system's poll.h.
fix tested by Jeff Rizzo on MacOSX 10.3.3.
diffstat:
pkgtools/libnbcompat/files/nbcompat.h | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diffs (26 lines):
diff -r 80b2aabb9887 -r 7d3e0512f043 pkgtools/libnbcompat/files/nbcompat.h
--- a/pkgtools/libnbcompat/files/nbcompat.h Wed May 12 21:49:39 2004 +0000
+++ b/pkgtools/libnbcompat/files/nbcompat.h Wed May 12 21:50:43 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nbcompat.h,v 1.33 2004/04/20 12:13:05 grant Exp $ */
+/* $NetBSD: nbcompat.h,v 1.34 2004/05/12 21:50:43 grant Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -66,13 +66,9 @@
#include <termios.h>
#include <unistd.h>
-#if HAVE_POLL
-# if HAVE_POLL_H
-# include <poll.h>
-# elif HAVE_SYS_POLL_H
-# include <sys/poll.h>
-# endif
-#else
+#if !HAVE_POLL
+# undef HAVE_POLL_H
+# undef HAVE_SYS_POLL_H
# include <nbcompat/poll.h>
#endif
Home |
Main Index |
Thread Index |
Old Index