[3076] | 1 | /*
|
---|
| 2 | * custom.h
|
---|
| 3 | *
|
---|
| 4 | * This file is for use on systems where Autoconf isn't quite able to
|
---|
| 5 | * get things right. It is appended to the bottom of config.h by configure,
|
---|
| 6 | * in order to override definitions from Autoconf that are erroneous. See
|
---|
| 7 | * the manual for more information.
|
---|
| 8 | *
|
---|
| 9 | * If you make additions to this file for your system, please send me
|
---|
| 10 | * the information, to arnold@skeeve.com.
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | /*
|
---|
| 14 | * Copyright (C) 1995-2004 the Free Software Foundation, Inc.
|
---|
| 15 | *
|
---|
| 16 | * This file is part of GAWK, the GNU implementation of the
|
---|
| 17 | * AWK Programming Language.
|
---|
| 18 | *
|
---|
| 19 | * GAWK is free software; you can redistribute it and/or modify
|
---|
| 20 | * it under the terms of the GNU General Public License as published by
|
---|
| 21 | * the Free Software Foundation; either version 2 of the License, or
|
---|
| 22 | * (at your option) any later version.
|
---|
| 23 | *
|
---|
| 24 | * GAWK is distributed in the hope that it will be useful,
|
---|
| 25 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 26 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 27 | * GNU General Public License for more details.
|
---|
| 28 | *
|
---|
| 29 | * You should have received a copy of the GNU General Public License
|
---|
| 30 | * along with this program; if not, write to the Free Software
|
---|
| 31 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
| 32 | */
|
---|
| 33 |
|
---|
| 34 | /* for MIPS RiscOS, from Nelson H. F. Beebe, beebe@math.utah.edu */
|
---|
| 35 | #if defined(__host_mips) && defined(SYSTYPE_BSD43)
|
---|
| 36 | #undef HAVE_STRTOD
|
---|
| 37 | #undef HAVE_STRERROR
|
---|
| 38 | #endif
|
---|
| 39 |
|
---|
| 40 | /* for VMS POSIX, from Pat Rankin, rankin@pactechdata.com */
|
---|
| 41 | #ifdef VMS_POSIX
|
---|
| 42 | #undef VMS
|
---|
| 43 | #include "vms/redirect.h"
|
---|
| 44 | #endif
|
---|
| 45 |
|
---|
| 46 | /* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
|
---|
| 47 | #ifdef __QNX__
|
---|
| 48 | #define GETPGRP_VOID 1
|
---|
| 49 | #endif
|
---|
| 50 |
|
---|
| 51 | /* For Amigas, from Fred Fish, fnf@ninemoons.com */
|
---|
| 52 | #ifdef __amigaos__
|
---|
| 53 | #define fork vfork
|
---|
| 54 | #endif
|
---|
| 55 |
|
---|
| 56 | /* For BeOS, from mc@whoever.com */
|
---|
| 57 | #if defined(__dest_os) && __dest_os == __be_os
|
---|
| 58 | #define BROKEN_STRNCASECMP
|
---|
| 59 | #define ELIDE_CODE
|
---|
| 60 | #include <alloca.h>
|
---|
| 61 | #endif
|
---|
| 62 |
|
---|
| 63 | /* For Tandems, based on code from scldad@sdc.com.au */
|
---|
| 64 | #ifdef TANDEM
|
---|
| 65 | #define tempnam(a,b) tmpnam(NULL)
|
---|
| 66 | #define variable(a,b,c) variabl(a,b,c)
|
---|
| 67 | #define srandom srand
|
---|
| 68 | #define random rand
|
---|
| 69 |
|
---|
| 70 | #include <cextdecs(PROCESS_GETINFO_)>
|
---|
| 71 | #endif
|
---|
| 72 |
|
---|
| 73 | /* For 16-bit DOS */
|
---|
| 74 | #if defined(MSC_VER) && defined(MSDOS)
|
---|
| 75 | #define NO_PROFILING 1
|
---|
| 76 | #endif
|
---|
| 77 |
|
---|
| 78 | /* For MacOS X, which is almost BSD Unix */
|
---|
| 79 | #ifdef __APPLE__
|
---|
| 80 | #define HAVE_MKTIME 1
|
---|
| 81 | #endif
|
---|
| 82 |
|
---|
| 83 | #ifdef __WIN32__
|
---|
| 84 | #undef HAVE_STRFTIME
|
---|
| 85 | /* #define system(s) os_system(s) */
|
---|
| 86 | #endif
|
---|
| 87 |
|
---|
| 88 | /* For ULTRIX 4.3 */
|
---|
| 89 | #ifdef ultrix
|
---|
| 90 | #define HAVE_MKTIME 1
|
---|
| 91 | #define GETGROUPS_NOT_STANDARD 1
|
---|
| 92 | #endif
|
---|
| 93 |
|
---|
| 94 | /* For whiny users */
|
---|
| 95 | #ifdef USE_INCLUDED_STRFTIME
|
---|
| 96 | #undef HAVE_STRFTIME
|
---|
| 97 | #endif
|
---|
| 98 |
|
---|
| 99 | /* For HP/UX with gcc */
|
---|
| 100 | #if defined(hpux) || defined(_HPUX_SOURCE)
|
---|
| 101 | #undef HAVE_TZSET
|
---|
| 102 | #define HAVE_TZSET 1
|
---|
| 103 | #define _TZSET 1
|
---|
| 104 | #endif
|
---|