about summary refs log tree commit diff stats
path: root/WWW
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2012-11-13 10:49:38 -0500
committerThomas E. Dickey <dickey@invisible-island.net>2012-11-13 10:49:38 -0500
commit9eebe49d8e59d0fed4ea8b2b3ef40d6221e9fea3 (patch)
tree209ae37cc18e8fe07bb08403a7cb0fdf7822dfd6 /WWW
parentbb40a80cd0f6f188e51a26c7d06d4a2d85d8a197 (diff)
downloadlynx-snapshots-9eebe49d8e59d0fed4ea8b2b3ef40d6221e9fea3.tar.gz
snapshot of project "lynx", label v2-8-8dev_14d
Diffstat (limited to 'WWW')
-rw-r--r--WWW/Library/Implementation/HTTCP.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c
index fae4448f..8add800c 100644
--- a/WWW/Library/Implementation/HTTCP.c
+++ b/WWW/Library/Implementation/HTTCP.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTTCP.c,v 1.120 2012/11/13 01:52:33 tom Exp $
+ * $LynxId: HTTCP.c,v 1.122 2012/11/13 10:49:38 tom Exp $
  *
  *			Generic Communication Code		HTTCP.c
  *			==========================
@@ -348,7 +348,6 @@ BOOL valid_hostname(char *name)
     return (BOOL) (*cp == '\0' || (*cp == '.' && iseg != 0 && cp[1] == '\0'));
 }
 
-#ifdef NSL_FORK
 /* for transfer of status from child to parent: */
 typedef struct _statuses {
     size_t rehostentlen;
@@ -367,7 +366,6 @@ static void quench(int sig GCC_UNUSED)
 {
     _exit(2);
 }
-#endif /* NSL_FORK */
 
 int lynx_nsl_status = HT_OK;
 
@@ -437,11 +435,12 @@ static void dump_hostent(const char *msgprefix,
     }
 }
 
+#ifdef NSL_FORK
+
 /*
  * Even though it is a small amount, we cannot count on reading the whole
  * struct via a pipe in one read -TD
  */
-#ifdef NSL_FORK
 static unsigned read_bytes(int fd, char *buffer, size_t length)
 {
     unsigned result = 0;
@@ -515,6 +514,7 @@ static unsigned read_hostent(int fd, char *buffer, size_t length)
 
     return have;
 }
+#endif /* NSL_FORK */
 
 /*
  *  fill_rehostent - copies as much as possible relevant content from
@@ -610,6 +610,7 @@ static size_t fill_rehostent(void **rehostent,
     }
     return need;
 }
+#endif /* NSL_FORK */
 
 /*
  * This chunk of code is used in both win32 and cygwin.
@@ -653,7 +654,8 @@ static unsigned long __stdcall _fork_func(void *arg)
 }
 #endif /* __CYGWIN__ */
 #endif /* _WINDOWS_NSL */
-#endif /* NSL_FORK */
+
+#ifdef NSL_FORK
 
 #ifndef HAVE_H_ERRNO
 #undef  h_errno
3cd0d5b ^


27b2517 ^

abd9e78 ^


4966b91 ^
abd9e78 ^
3cd0d5b ^

753adb9 ^
2c486cb ^
27b2517 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43