bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gawk-3.1.0 - O_BINARY defined twice under cygwin-1.3.2


From: Peter J. Farley III
Subject: [PATCH] gawk-3.1.0 - O_BINARY defined twice under cygwin-1.3.2
Date: Tue, 21 Aug 2001 00:30:42 -0400

With the patch pasted below and copying /bin/bash.exe to /bin/sh.exe, gawk-3.1.0 configures, builds, and passes "make check" completely.

"awk.h" #defines O_BINARY as 0 on non-MSDOS/OS2/WIN32 systems, which cygwin is not. However, it #defines O_BINARY whether or not it is already defined, and whether or not HAVE_FCNTL_H is defined. The test for O_BINARY could probably be removed, as everyplace I got the error (builtin.c and gawkmisc.c are two places), <fcntl.h> is included right after "awk.h", but this works as it is.

There are also apparently a couple of places where "SHELL = /bin/sh" is still coded explicitly (po/Makefile.in.in is one). I'll try to nail those down tomorrow.

HTH

--------------awkh.dif-------------------
*** awk.h0      Sun Apr 22 09:44:14 2001
--- awk.h       Mon Aug 20 23:36:46 2001
***************
*** 170,176 ****
--- 170,178 ----
  #endif        /* atarist || VMS */

  #if ! defined(MSDOS) && ! defined(OS2) && ! defined(WIN32)
+ #if ! defined(O_BINARY) && ! defined(HAVE_FCNTL_H)
  #define O_BINARY      0
+ #endif
  #endif

  #if defined(TANDEM)
--------------awkh.dif-------------------

----------------------------------------------------
Peter J. Farley III (address@hidden)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]