w3m

Unnamed repository; edit this file to name it for gitweb.
git clone https://logand.com/git/w3m.git/
Log | Files | Refs | README

commit 0b053ad6dc8f7f0da26675abfc8800eb43055169
parent 4469b683f6d9afd769c4dfa78e4c5e18a645a45d
Author: ukai <ukai>
Date:   Sat, 26 Feb 2005 17:06:44 +0000

[w3m-dev 04143] Patch for OS/2
* config.h.in: ifdef HAVE_SETPGRP
* configure.in: define USE_BINMODE_STREAM for *os2-emx*
* islang.c: ULONG -> unsigned long
* main.c: ULONG -> unsigned long

Diffstat:
Mconfig.h.in | 5++++-
Mconfigure.in | 2+-
Mislang.c | 2+-
Mmain.c | 2+-
4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/config.h.in b/config.h.in @@ -145,12 +145,15 @@ typedef long clen_t; #undef HAVE_LANGINFO_CODESET #undef SETPGRP_VOID +#ifdef HAVE_SETPGRP #ifdef SETPGRP_VOID #define SETPGRP() setpgrp() #else #define SETPGRP() setpgrp(0,0) #endif - +#else /* no HAVE_SETPGRP; OS/2 EMX */ +#define SETPGRP() setpgid(0, 0) +#endif #undef HAVE_FLOAT_H #undef HAVE_SYS_SELECT_H diff --git a/configure.in b/configure.in @@ -110,7 +110,7 @@ AC_DEFINE(AUXBIN_TARGETS, "$AUXBIN_TARGETS") AC_SUBST(USE_BINMODE_STREAM) case "$host_os" in - *cygwin*) + *cygwin*|*os2-emx*) AC_DEFINE(USE_BINMODE_STREAM) ;; esac diff --git a/islang.c b/islang.c @@ -18,7 +18,7 @@ main(int argc, char **argv) return 1; if (isdigit((int)*argv[1])) { - ULONG CpList[8], CpSize; + unsigned long CpList[8], CpSize; APIRET rc = DosQueryCp(sizeof(CpList), CpList, &CpSize); if (rc) return rc; diff --git a/main.c b/main.c @@ -5673,7 +5673,7 @@ searchKeyNum(void) static char * getCodePage(void) { - ULONG CpList[8], CpSize; + unsigned long CpList[8], CpSize; if (!getenv("WINDOWID") && !DosQueryCp(sizeof(CpList), CpList, &CpSize)) return Sprintf("CP%d", *CpList)->ptr;