]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
moved #define SQUID_NONBLOCK if-statement to src/squid.h because
authorwessels <>
Tue, 27 Apr 1999 03:36:02 +0000 (03:36 +0000)
committerwessels <>
Tue, 27 Apr 1999 03:36:02 +0000 (03:36 +0000)
O_NONBLOCK probably won't be defined when config.h is read!

src/squid.h

index ba572d6aaf968b9cd45b8e37d01ed5cc8f78abf6..be542e135ed5eed669f8d83dffac3432fcc2e28e 100644 (file)
@@ -1,7 +1,7 @@
 
 /*
- * $Id: squid.h,v 1.188 1999/04/23 02:57:32 wessels Exp $
- * $Id: squid.h,v 1.188 1999/04/23 02:57:32 wessels Exp $
+ * $Id: squid.h,v 1.189 1999/04/26 21:36:02 wessels Exp $
+ * $Id: squid.h,v 1.189 1999/04/26 21:36:02 wessels Exp $
  *
  * AUTHOR: Duane Wessels
  *
@@ -391,5 +391,14 @@ struct rusage {
 extern struct snmp_mib_tree *Mib;
 #endif
 
+/*
+ * Hey dummy, don't be tempted to move this to lib/config.h.in again.  O_NONBLOCK
+ * will not be defined there because you didn't #include <fcntl.h> yet.
+ */
+#if defined(O_NONBLOCK) && !defined(_SQUID_SUNOS_) && !defined(_SQUID_SOLARIS_)
+#define SQUID_NONBLOCK O_NONBLOCK
+#else
+#define SQUID_NONBLOCK O_NDELAY
+#endif
 
 #endif /* SQUID_H */