[w3m-dev 04143] Patch for OS/2
野宮 賢 / NOMIYA Masaru <[email protected]> Tue, 22 Feb 2005 16:22:32 +0900
| Newsgroups | gmane.comp.web.w3m.devel |
|---|---|
| Message-ID | <ekf93vpj.wl%[email protected]> |
Patch for OS/2
--- configure.in.orig 2004-10-13 16:52:51.000000000 +0900
+++ configure.in 2005-02-22 13:46:56.000000000 +0900
@@ -110,7 +110,7 @@
AC_SUBST(USE_BINMODE_STREAM)
case "$host_os" in
- *cygwin*)
+ *cygwin*|*os2-emx*)
AC_DEFINE(USE_BINMODE_STREAM)
;;
esac
--- configure.orig 2005-02-14 16:36:30.000000000 +0900
+++ configure 2005-02-22 13:48:30.000000000 +0900
@@ -4722,7 +4722,7 @@
case "$host_os" in
- *cygwin*)
+ *cygwin*|*os2-emx*)
cat >> confdefs.h <<\EOF
#define USE_BINMODE_STREAM 1
EOF
--- config.h.in.orig 2004-10-13 16:52:50.000000000 +0900
+++ config.h.in 2005-02-22 15:45:44.000000000 +0900
@@ -145,11 +145,15 @@
#undef HAVE_LANGINFO_CODESET
#undef SETPGRP_VOID
+#ifdef HAVE_SETPGRP
#ifdef SETPGRP_VOID
#define SETPGRP() setpgrp()
#else
#define SETPGRP() setpgrp(0,0)
#endif
+#else
+#define SETPGRP() setpgid(0,0)
+#endif
#undef HAVE_FLOAT_H
#undef HAVE_SYS_SELECT_H
--- islang.c.orig 2001-11-24 11:01:26.000000000 +0900
+++ islang.c 2005-02-22 13:53:10.000000000 +0900
@@ -10,6 +10,9 @@
#include <stdio.h>
#include <string.h>
#include <ctype.h>
+#ifdef __EMX__
+#define ULONG unsigned long
+#endif
int
main(int argc, char **argv)
--- main.c.orig 2004-09-30 00:44:02.000000000 +0900
+++ main.c 2005-02-22 13:53:34.000000000 +0900
@@ -23,6 +23,9 @@
#define getch() do_getch()
#endif /* defined(USE_GPM) || defined(USE_SYSMOUSE) */
#endif
+#ifdef __EMX__
+#define ULONG unsigned long
+#endif
#define DSTR_LEN 256
---
mail-to: [email protected]
e
-- M. Crichton --