Introduced -devel and -extras subpackages for gawk
[platform/upstream/gawk.git] / custom.h
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, 2008, 2009, 2011 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 3 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 VMS POSIX, from Pat Rankin, r.pat.rankin@gmail.com */
35 #ifdef VMS_POSIX
36 #undef VMS
37 #include "vms/redirect.h"
38 #endif
39
40 /* For QNX, based on submission from Michael Hunter, mphunter@qnx.com */
41 #ifdef __QNX__
42 #define GETPGRP_VOID    1
43 #endif
44
45 /* For MacOS X, which is almost BSD Unix */
46 #ifdef __APPLE__
47 #define HAVE_MKTIME     1
48 #endif
49
50 /* For ULTRIX 4.3 */
51 #ifdef ultrix
52 #define HAVE_MKTIME     1
53 #define GETGROUPS_NOT_STANDARD  1
54 #endif
55
56 /* For whiny users */
57 #ifdef USE_INCLUDED_STRFTIME
58 #undef HAVE_STRFTIME
59 #endif
60
61 /* For HP/UX with gcc */
62 #if defined(hpux) || defined(_HPUX_SOURCE)
63 #undef HAVE_TZSET
64 #define HAVE_TZSET 1
65 #define _TZSET 1
66 #endif
67
68 /* For z/OS, from Dave Pitts */
69 #ifdef ZOS_USS
70 #undef HAVE_DLFCN_H
71 #undef HAVE_SYS_PARAM_H
72 #undef HAVE_MCHECK_H
73 #undef HAVE_SETENV
74 #define setenv zos_setenv
75 #define unsetenv zos_unsetenv
76 extern int setenv(const char *name, const char *value, int rewrite);
77 extern int unsetenv(const char *name);
78 #endif