]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - compat/os/sunos.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / compat / os / sunos.h
index 25f891e5daa8d7ec74906f25fb8e8d0ac92c2b64..8ab17d561fc10b956c76c8023168d3de9d704d99 100644 (file)
@@ -1,11 +1,15 @@
-#ifndef SQUID_CONFIG_H
-#include "config.h"
-#endif
+/*
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
 
 #ifndef SQUID_OS_SUNOS_H
 #define SQUID_OS_SUNOS_H
 
-#ifdef _SQUID_SUNOS_
+#if _SQUID_SUNOS_
 
 /****************************************************************************
  *--------------------------------------------------------------------------*
  *--------------------------------------------------------------------------*
  ****************************************************************************/
 
+/* O_NONBLOCK requires <fcntl.h> to be included first */
+#if HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
 
 /*
  * We assume O_NONBLOCK is broken, or does not exist, on SunOS.
  */
 #define SQUID_NONBLOCK O_NDELAY
 
-
-
 #endif /* _SQUID_SUNOS_ */
 #endif /* SQUID_OS_SUNOS_H */
+