| 110 # include <netdb.h> |
111 # include <netdb.h> |
| 111 # include <signal.h> |
112 # include <signal.h> |
| 112 # include <unistd.h> |
113 # include <unistd.h> |
| 113 #endif |
114 #endif |
| 114 |
115 |
| 115 #ifndef MAXPATHLEN |
116 /* MAXPATHLEN should only be used with readlink() on glib < 2.4.0. For |
| 116 # ifdef PATH_MAX |
117 * anything else, use g_file_read_link() or other dynamic functions. This is |
| 117 # define MAXPATHLEN PATH_MAX |
118 * important because Hurd has no hard limits on path length. */ |
| 118 # else |
119 #if !GLIB_CHECK_VERSION(2,4,0) |
| 119 # define MAXPATHLEN 1024 |
120 # ifndef MAXPATHLEN |
| |
121 # ifdef PATH_MAX |
| |
122 # define MAXPATHLEN PATH_MAX |
| |
123 # else |
| |
124 # define MAXPATHLEN 1024 |
| |
125 # endif |
| 120 # endif |
126 # endif |
| 121 #endif |
127 #endif |
| 122 |
128 |
| 123 #ifndef HOST_NAME_MAX |
129 #ifndef HOST_NAME_MAX |
| 124 # define HOST_NAME_MAX 255 |
130 # define HOST_NAME_MAX 255 |