File tree 9 files changed +25
-75
lines changed
9 files changed +25
-75
lines changed Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: port-protos.h,v 1.4 1997/09/08 02:26:23 momjian Exp $
9
+ * $Id: port-protos.h,v 1.5 1997/12/19 22:45:57 scrappy Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
27
27
extern int init_address_fixup (void );
28
28
extern double rint (double x );
29
29
extern double cbrt (double x );
30
- extern long random (void );
31
- extern void srandom (unsigned seed );
32
- extern int getrusage (int who , struct rusage * ru );
33
30
34
31
#endif /* PORT_PROTOS_H */
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: port-protos.h,v 1.3 1997/09/08 02:26:27 momjian Exp $
9
+ * $Id: port-protos.h,v 1.4 1997/12/19 22:45:59 scrappy Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
31
31
#define pg_dlclose dlclose
32
32
#define pg_dlerror dlerror
33
33
34
- /* port.c */
35
- extern long random (void );
36
- extern void srandom (int seed );
37
-
38
34
#endif /* PORT_PROTOS_H */
Original file line number Diff line number Diff line change 31
31
#define pg_dlclose dlclose
32
32
#define pg_dlerror dlerror
33
33
34
- /* port.c */
35
- extern long random (void );
36
-
37
34
#endif /* PORT_PROTOS_H */
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: port-protos.h,v 1.7 1997/09/18 16:09:14 scrappy Exp $
9
+ * $Id: port-protos.h,v 1.8 1997/12/19 22:46:15 scrappy Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
35
35
#define pg_dlclose dlclose
36
36
#define pg_dlerror dlerror
37
37
38
- /* port.c */
39
- #ifndef HAVE_RANDOM
40
- extern long random (void );
41
- #endif
42
- #ifndef HAVE_SRANDOM
43
- extern void srandom (int seed );
44
- #endif
45
-
46
- /* inet_aton.c in backend/port directory */
47
- extern int inet_aton (const char * cp , struct in_addr * addr );
48
-
49
- /* In system library, but can't find prototype in system library .h files */
50
- extern int gethostname (char * name , int namelen );
51
-
52
- /* In system library, but can't find prototype in system library .h files */
53
- #include <sys/resource.h>
54
- extern int getrusage (int who , struct rusage * rusage );
55
-
56
38
#endif /* PORT_PROTOS_H */
Original file line number Diff line number Diff line change 31
31
#define pg_dlclose dlclose
32
32
#define pg_dlerror dlerror
33
33
34
- /* port.c */
35
- extern long random (void );
36
- extern void srandom (int seed );
37
-
38
34
#endif /* PORT_PROTOS_H */
Original file line number Diff line number Diff line change 6
6
*
7
7
* Copyright (c) 1994, Regents of the University of California
8
8
*
9
- * $Id: port-protos.h,v 1.7 1997/09/08 02:27:36 momjian Exp $
9
+ * $Id: port-protos.h,v 1.8 1997/12/19 22:46:47 scrappy Exp $
10
10
*
11
11
*-------------------------------------------------------------------------
12
12
*/
@@ -40,15 +40,4 @@ extern int syscall();
40
40
41
41
extern void init_address_fixup (void );
42
42
43
- /* strdup.c: strdup() is not part of libc on Ultrix */
44
- extern char * strdup (char const * );
45
-
46
- /* inet_aton() is not part of libc on Ultrix. The following is from
47
- backend/port/inet_aton.h
48
- */
49
-
50
- struct in_addr ;
51
- int
52
- inet_aton (const char * cp , struct in_addr * addr );
53
-
54
43
#endif /* PORT_PORTOS_H */
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 31
31
#define pg_dlclose dlclose
32
32
#define pg_dlerror dlerror
33
33
34
- /* port.c */
35
- extern long random (void );
36
- extern void srandom (int seed );
37
- extern int strcasecmp (char * s1 , char * s2 );
38
- extern int gethostname (char * name , int namelen );
39
-
40
34
#endif /* PORT_PROTOS_H */
Original file line number Diff line number Diff line change 58
58
59
59
/* Set to 1 if you have gethostname() */
60
60
#undef HAVE_GETHOSTNAME
61
+ #ifndef GETHOSTNAME
62
+ extern int gethostname (char * name , int namelen );
63
+ #endif
61
64
62
65
/* Set to 1 if you have int timezone */
63
66
#undef HAVE_INT_TIMEZONE
67
70
68
71
/* Set to 1 if you have inet_aton() */
69
72
#undef HAVE_INET_ATON
73
+ #ifndef HAVE_INET_ATON
74
+ extern int inet_aton (const char * cp , struct in_addr * addr );
75
+ #endif
70
76
71
77
/* Set to 1 if you have fcvt() */
72
78
#undef HAVE_FCVT
104
110
/* Set to 1 if you have sigprocmask() */
105
111
#undef HAVE_SIGPROCMASK
106
112
113
+ /* Set to 1 if you have sigprocmask() */
114
+ #undef HAVE_STRCASECMP
115
+ #ifndef HAVE_STRCASECMP
116
+ extern int strcasecmp (char * s1 , char * s2 );
117
+ #endif
118
+
107
119
/* Set to 1 if you have strdup() */
108
120
#undef HAVE_STRDUP
121
+ #ifndef HAVE_STRDUP
122
+ extern char * strdup (char const * );
123
+ #endif
109
124
110
125
/* Set to 1 if you have random() */
111
126
#undef HAVE_RANDOM
127
+ #ifndef HAVE_RANDOM
128
+ extern long random (void );
129
+ #endif
112
130
113
131
/* Set to 1 if you have srandom() */
114
132
#undef HAVE_SRANDOM
133
+ #ifndef HAVE_SRANDOM
134
+ extern void srandom (int seed );
135
+ #endif
115
136
116
137
/* Set to 1 if you have libreadline.a */
117
138
#undef HAVE_LIBREADLINE
You can’t perform that action at this time.
0 commit comments