diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2002-01-06 20:12:10 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2002-01-06 20:12:10 -0500 |
commit | 8df98234eab86f6b1027425f4b57cb6d4ca471ca (patch) | |
tree | 25a1c4a9808f0f7aba448259fbc7f55f0e1e31c7 /WWW/Library/Implementation | |
parent | d83d4af153de5a3cfacc4ce014183fd36e0cd920 (diff) | |
download | lynx-snapshots-8df98234eab86f6b1027425f4b57cb6d4ca471ca.tar.gz |
snapshot of project "lynx", label v2-8-5dev_7
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTFile.c | 6 | ||||
-rw-r--r-- | WWW/Library/Implementation/www_tcp.h | 4 |
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 */ |