Home | History | Annotate | Line # | Download | only in import
      1      1.1  christos /* Substitute for <netinet/in.h>.
      2  1.1.1.2  christos    Copyright (C) 2007-2022 Free Software Foundation, Inc.
      3      1.1  christos 
      4  1.1.1.2  christos    This file is free software: you can redistribute it and/or modify
      5  1.1.1.2  christos    it under the terms of the GNU Lesser General Public License as
      6  1.1.1.2  christos    published by the Free Software Foundation; either version 2.1 of the
      7  1.1.1.2  christos    License, or (at your option) any later version.
      8      1.1  christos 
      9  1.1.1.2  christos    This file is distributed in the hope that it will be useful,
     10      1.1  christos    but WITHOUT ANY WARRANTY; without even the implied warranty of
     11      1.1  christos    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  1.1.1.2  christos    GNU Lesser General Public License for more details.
     13      1.1  christos 
     14  1.1.1.2  christos    You should have received a copy of the GNU Lesser General Public License
     15  1.1.1.2  christos    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
     16      1.1  christos 
     17      1.1  christos #ifndef _@GUARD_PREFIX@_NETINET_IN_H
     18      1.1  christos 
     19      1.1  christos #if __GNUC__ >= 3
     20      1.1  christos @PRAGMA_SYSTEM_HEADER@
     21      1.1  christos #endif
     22      1.1  christos @PRAGMA_COLUMNS@
     23      1.1  christos 
     24      1.1  christos #if @HAVE_NETINET_IN_H@
     25      1.1  christos 
     26      1.1  christos /* On many platforms, <netinet/in.h> assumes prior inclusion of
     27      1.1  christos    <sys/types.h>.  */
     28      1.1  christos # include <sys/types.h>
     29      1.1  christos 
     30      1.1  christos /* The include_next requires a split double-inclusion guard.  */
     31      1.1  christos # @INCLUDE_NEXT@ @NEXT_NETINET_IN_H@
     32      1.1  christos 
     33      1.1  christos #endif
     34      1.1  christos 
     35      1.1  christos #ifndef _@GUARD_PREFIX@_NETINET_IN_H
     36      1.1  christos #define _@GUARD_PREFIX@_NETINET_IN_H
     37      1.1  christos 
     38      1.1  christos #if !@HAVE_NETINET_IN_H@
     39      1.1  christos 
     40      1.1  christos /* A platform that lacks <netinet/in.h>.  */
     41      1.1  christos 
     42      1.1  christos # include <sys/socket.h>
     43      1.1  christos 
     44      1.1  christos #endif
     45      1.1  christos 
     46      1.1  christos #endif /* _@GUARD_PREFIX@_NETINET_IN_H */
     47      1.1  christos #endif /* _@GUARD_PREFIX@_NETINET_IN_H */
     48