From 8df98234eab86f6b1027425f4b57cb6d4ca471ca Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Sun, 6 Jan 2002 20:12:10 -0500 Subject: snapshot of project "lynx", label v2-8-5dev_7 --- WWW/Library/Implementation/HTFile.c | 6 ++++-- WWW/Library/Implementation/www_tcp.h | 4 ++++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'WWW/Library/Implementation') 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 #include +#ifndef pid_t +typedef int pid_t; +#endif /* !pid_t */ + #ifdef USE_WINSOCK2_H #include /* normally included in windows.h */ -- cgit 1.4.1-2-gfad0