summaryrefslogtreecommitdiffstats
path: root/contrib/awk/gawkmisc.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-11-02 21:06:08 +0000
committerobrien <obrien@FreeBSD.org>2001-11-02 21:06:08 +0000
commitcfe0e2b488d886d14fc1755679b8a88165b22d92 (patch)
treefbf9ca4d3f276e13b39090465008b182d20f0e5a /contrib/awk/gawkmisc.c
parent9682ea287751aa7aad9e21c50ba74cfb3d7314d0 (diff)
parent223f0286ad0612783e0da01de3b5bfdc52e3b25c (diff)
downloadFreeBSD-src-cfe0e2b488d886d14fc1755679b8a88165b22d92.zip
FreeBSD-src-cfe0e2b488d886d14fc1755679b8a88165b22d92.tar.gz
This commit was generated by cvs2svn to compensate for changes in r85898,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/awk/gawkmisc.c')
-rw-r--r--contrib/awk/gawkmisc.c27
1 files changed, 17 insertions, 10 deletions
diff --git a/contrib/awk/gawkmisc.c b/contrib/awk/gawkmisc.c
index 23ab42f..35e5bf9 100644
--- a/contrib/awk/gawkmisc.c
+++ b/contrib/awk/gawkmisc.c
@@ -3,7 +3,7 @@
*/
/*
- * Copyright (C) 1986, 1988, 1989, 1991-2000 the Free Software Foundation, Inc.
+ * Copyright (C) 1986, 1988, 1989, 1991-2001 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -25,21 +25,29 @@
#include "awk.h"
+#if defined(HAVE_FCNTL_H)
+#include <fcntl.h>
+#endif
+
/* some old compilers don't grok #elif. sigh */
#if defined(MSDOS) || defined(OS2) || defined(WIN32)
#include "gawkmisc.pc"
-#else
+#else /* not MSDOS, not OS2, not WIN32 */
#if defined(VMS)
#include "vms/gawkmisc.vms"
-#else
+#else /* not VMS */
#if defined(atarist)
-#include "atari/gawkmisc.atr"
-#else
+#include "unsupported/atari/gawkmisc.atr"
+#else /* not atarist */
+#if defined(TANDEM)
+#include "tmiscc"
+#else /* not TANDEM */
#include "posix/gawkmisc.c"
-#endif
-#endif
-#endif
+#endif /* not TANDEM */
+#endif /* not atarist */
+#endif /* not VMS */
+#endif /* not MSDOS, not OS2, not WIN32 */
/* xmalloc --- provide this so that other GNU library routines work */
@@ -52,8 +60,7 @@ typedef char *pointer;
extern pointer xmalloc P((size_t bytes)); /* get rid of gcc warning */
pointer
-xmalloc(bytes)
-size_t bytes;
+xmalloc(size_t bytes)
{
pointer p;
OpenPOWER on IntegriCloud