2013-11-26 22:55:28 +00:00
|
|
|
/* Substitute for <netinet/in.h>.
|
2023-10-18 07:29:37 +00:00
|
|
|
Copyright (C) 2007-2023 Free Software Foundation, Inc.
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2023-10-18 07:29:37 +00:00
|
|
|
This file is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as
|
|
|
|
published by the Free Software Foundation; either version 2.1 of the
|
|
|
|
License, or (at your option) any later version.
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2023-10-18 07:29:37 +00:00
|
|
|
This file is distributed in the hope that it will be useful,
|
2013-11-26 22:53:19 +00:00
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
2023-10-18 07:29:37 +00:00
|
|
|
GNU Lesser General Public License for more details.
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2023-10-18 07:29:37 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with this program. If not, see <https://www.gnu.org/licenses/>. */
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:59:47 +00:00
|
|
|
#ifndef _@GUARD_PREFIX@_NETINET_IN_H
|
2013-11-26 22:53:44 +00:00
|
|
|
|
2013-11-26 22:57:29 +00:00
|
|
|
#if __GNUC__ >= 3
|
2013-11-26 22:56:50 +00:00
|
|
|
@PRAGMA_SYSTEM_HEADER@
|
2013-11-26 22:57:29 +00:00
|
|
|
#endif
|
2013-11-26 22:59:47 +00:00
|
|
|
@PRAGMA_COLUMNS@
|
2013-11-26 22:57:29 +00:00
|
|
|
|
|
|
|
#if @HAVE_NETINET_IN_H@
|
2013-11-26 22:56:50 +00:00
|
|
|
|
2013-11-26 22:55:28 +00:00
|
|
|
/* On many platforms, <netinet/in.h> assumes prior inclusion of
|
|
|
|
<sys/types.h>. */
|
|
|
|
# include <sys/types.h>
|
|
|
|
|
|
|
|
/* The include_next requires a split double-inclusion guard. */
|
|
|
|
# @INCLUDE_NEXT@ @NEXT_NETINET_IN_H@
|
2013-11-26 22:53:19 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2013-11-26 22:59:47 +00:00
|
|
|
#ifndef _@GUARD_PREFIX@_NETINET_IN_H
|
|
|
|
#define _@GUARD_PREFIX@_NETINET_IN_H
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:55:28 +00:00
|
|
|
#if !@HAVE_NETINET_IN_H@
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:55:28 +00:00
|
|
|
/* A platform that lacks <netinet/in.h>. */
|
2013-11-26 22:53:19 +00:00
|
|
|
|
2013-11-26 22:55:28 +00:00
|
|
|
# include <sys/socket.h>
|
2013-11-26 22:53:44 +00:00
|
|
|
|
2013-11-26 22:55:28 +00:00
|
|
|
#endif
|
2013-11-26 22:53:44 +00:00
|
|
|
|
2013-11-26 22:59:47 +00:00
|
|
|
#endif /* _@GUARD_PREFIX@_NETINET_IN_H */
|
|
|
|
#endif /* _@GUARD_PREFIX@_NETINET_IN_H */
|