-#ifndef SQUID_CONFIG_H
-#include "config.h"
-#endif
+/*
+ * Copyright (C) 1996-2018 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 */
+