-
Notifications
You must be signed in to change notification settings - Fork 5
/
custom.h
78 lines (70 loc) · 2.18 KB
/
custom.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*
* custom.h
*
* This file is for use on systems where Autoconf isn't quite able to
* get things right. It is appended to the bottom of config.h by configure,
* in order to override definitions from Autoconf that are erroneous. See
* the manual for more information.
*
* If you make additions to this file for your system, please send me
* the information, to [email protected].
*/
/*
* Copyright (C) 1995-2004, 2008, 2009, 2011 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
*
* GAWK is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* GAWK is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* for VMS POSIX, from Pat Rankin, [email protected] */
#ifdef VMS_POSIX
#undef VMS
#include "vms/redirect.h"
#endif
/* For QNX, based on submission from Michael Hunter, [email protected] */
#ifdef __QNX__
#define GETPGRP_VOID 1
#endif
/* For MacOS X, which is almost BSD Unix */
#ifdef __APPLE__
#define HAVE_MKTIME 1
#endif
/* For ULTRIX 4.3 */
#ifdef ultrix
#define HAVE_MKTIME 1
#define GETGROUPS_NOT_STANDARD 1
#endif
/* For whiny users */
#ifdef USE_INCLUDED_STRFTIME
#undef HAVE_STRFTIME
#endif
/* For HP/UX with gcc */
#if defined(hpux) || defined(_HPUX_SOURCE)
#undef HAVE_TZSET
#define HAVE_TZSET 1
#define _TZSET 1
#endif
/* For z/OS, from Dave Pitts */
#ifdef ZOS_USS
#undef HAVE_DLFCN_H
#undef HAVE_SYS_PARAM_H
#undef HAVE_MCHECK_H
#undef HAVE_SETENV
#define setenv zos_setenv
#define unsetenv zos_unsetenv
extern int setenv(const char *name, const char *value, int rewrite);
extern int unsetenv(const char *name);
#endif