Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
#ifndef _GL_NETINET_IN_H
-#define _GL_NETINET_IN_H
#if @HAVE_NETINET_IN_H@
/* On many platforms, <netinet/in.h> assumes prior inclusion of
<sys/types.h>. */
-
# include <sys/types.h>
-# if @HAVE_INCLUDE_NEXT@
-# include_next <netinet/in.h>
-# else
-# include @ABSOLUTE_NETINET_IN_H@
-# endif
-#else
+
+/* The include_next requires a split double-inclusion guard. */
+# @INCLUDE_NEXT@ @NEXT_NETINET_IN_H@
+
+#endif
+
+#ifndef _GL_NETINET_IN_H
+#define _GL_NETINET_IN_H
+
+#if !@HAVE_NETINET_IN_H@
/* A platform that lacks <netinet/in.h>. */
#endif
#endif /* _GL_NETINET_IN_H */
+#endif /* _GL_NETINET_IN_H */