about summary refs log tree commit diff stats
path: root/WWW/Library
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTFile.c6
-rw-r--r--WWW/Library/Implementation/www_tcp.h4
2 files changed, 8 insertions, 2 deletions
diff --git a/WWW/Library/Implementation/HTFile.c b/WWW/Library/Implementation/HTFile.c
index 9ddfd398..562ac645 100644
--- a/WWW/Library/Implementation/HTFile.c
+++ b/WWW/Library/Implementation/HTFile.c
@@ -1631,6 +1631,7 @@ PRIVATE void do_readme ARGS2(HTStructured *, target, CONST char *, localname)
 
 #define NM_cmp(a,b) ((a) < (b) ? -1 : ((a) > (b) ? 1 : 0))
 
+#if defined(LONG_LIST) && defined(DIRED_SUPPORT)
 PRIVATE char *file_type ARGS1(char *, path)
 {
     char *type;
@@ -1641,13 +1642,14 @@ PRIVATE char *file_type ARGS1(char *, path)
 	type = "";
     return type;
 }
+#endif /* LONG_LIST && DIRED_SUPPORT */
 
 PRIVATE int dired_cmp ARGS2(void *, a, void *, b)
 {
     DIRED *p = (DIRED *)a;
     DIRED *q = (DIRED *)b;
     int code = p->sort_tags - q->sort_tags;
-#ifdef LONG_LIST
+#if defined(LONG_LIST) && defined(DIRED_SUPPORT)
     if (code == 0) {
 	switch (dir_list_order) {
 	case ORDER_BY_SIZE:
@@ -1673,7 +1675,7 @@ PRIVATE int dired_cmp ARGS2(void *, a, void *, b)
 	    break;
 	}
     }
-#endif /* LONG_LIST */
+#endif /* LONG_LIST && DIRED_SUPPORT */
     if (code == 0)
 	code = AS_cmp(p->file_name, q->file_name);
 #if 0
diff --git a/WWW/Library/Implementation/www_tcp.h b/WWW/Library/Implementation/www_tcp.h
index 05aa61e8..1a6844b5 100644
--- a/WWW/Library/Implementation/www_tcp.h
+++ b/WWW/Library/Implementation/www_tcp.h
@@ -192,6 +192,10 @@ extern int ws_netread(int fd, char *buf, int len);
 #include <errno.h>
 #include <direct.h>
 
+#ifndef pid_t
+typedef int pid_t;
+#endif /* !pid_t */
+
 #ifdef USE_WINSOCK2_H
 #include <winsock2.h>		/* normally included in windows.h */