summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2006-07-12 14:14:31 +1000
committerDarren Tucker <dtucker@zip.com.au>2006-07-12 14:14:31 +1000
commit248469bc8d6c001596fdd3a83c1ffc63ae466e5b (patch)
tree9bb895755ccbdd68742c3f96950ce07efbb7850c /defines.h
parente0e4aad1fdd8770283798eede1297f363b43498d (diff)
- (dtucker) [configure.ac defines.h] Only define SHUT_RD (and friends) and O_NONBLOCK
if they're really needed. Fixes build errors on HP-UX, old Linuxes and probably more.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/defines.h b/defines.h
index f2fdd3cad..4dccc9172 100644
--- a/defines.h
+++ b/defines.h
@@ -25,12 +25,12 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.132 2006/05/15 07:17:30 dtucker Exp $ */ 28/* $Id: defines.h,v 1.133 2006/07/12 04:14:31 dtucker Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
32 32
33#ifndef SHUT_RDWR 33#if defined(HAVE_DECL_SHUT_RD) && HAVE_DECL_SHUT_RD == 0
34enum 34enum
35{ 35{
36 SHUT_RD = 0, /* No more receptions. */ 36 SHUT_RD = 0, /* No more receptions. */
@@ -90,8 +90,8 @@ enum
90#endif 90#endif
91#endif 91#endif
92 92
93#ifndef O_NONBLOCK /* Non Blocking Open */ 93#if defined(HAVE_DECL_O_NONBLOCK) && HAVE_DECL_O_NONBLOCK == 0
94# define O_NONBLOCK 00004 94# define O_NONBLOCK 00004 /* Non Blocking Open */
95#endif 95#endif
96 96
97#ifndef S_ISDIR 97#ifndef S_ISDIR