Move the dirfd() declaration to <dirent.h>.
[pspp] / lib / netdb.in.h
1 /* Provide a netdb.h header file for systems lacking it (read: MinGW).
2    Copyright (C) 2008 Free Software Foundation, Inc.
3    Written by Simon Josefsson.
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2, or (at your option)
8    any later version.
9
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software Foundation,
17    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
18
19 /* This file is supposed to be used on platforms that lack <netdb.h>.
20    It is intended to provide definitions and prototypes needed by an
21    application.  */
22
23 #ifndef _GL_NETDB_H
24
25 #if @HAVE_NETDB_H@
26
27 # if __GNUC__ >= 3
28 @PRAGMA_SYSTEM_HEADER@
29 # endif
30
31 /* The include_next requires a split double-inclusion guard.  */
32 # @INCLUDE_NEXT@ @NEXT_NETDB_H@
33
34 #endif
35
36 #ifndef _GL_NETDB_H
37 #define _GL_NETDB_H
38
39 #if @HAVE_NETDB_H@
40
41 /* Declarations for a platform that has <netdb.h>.  */
42
43 #else
44
45 /* Get netdb.h definitions such as struct hostent for MinGW.  */
46 #include <sys/socket.h>
47
48 /* Declarations for a platform that lacks <netdb.h>.  */
49
50 #endif /* HAVE_NETDB_H */
51
52 #endif /* _GL_NETDB_H */
53 #endif /* _GL_NETDB_H */