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
|
$NetBSD: patch-ad,v 1.6 2005/11/10 22:18:33 joerg Exp $
--- stdenv.h.orig 1995-05-30 07:13:53.000000000 -0400
+++ stdenv.h
@@ -44,9 +44,7 @@
#include <signal.h>
#include <ctype.h>
-#if REQUIRE_STAT || REQUIRE_IOCTL
#include <sys/types.h>
-#endif
#if REQUIRE_IOCTL
#include <sys/ioctl.h>
@@ -239,7 +237,7 @@ extern int getgroups(int, int *);
* hacks to present a standard system call interface
*/
-#ifdef linux
+#if defined(linux) || defined(__INTERIX)
#include "unistd.h"
#define setpgrp(a, b) setpgid(a, b)
#endif
@@ -283,6 +281,7 @@ extern int getgroups(int, int *);
/* stdlib */
+#if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__INTERIX) && !defined(__APPLE__) && !defined(__DragonFly__)
extern noreturn exit(int);
extern noreturn abort(void);
extern long strtol(const char *num, char **end, int base);
@@ -290,6 +289,7 @@ extern void *qsort(
void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *)
);
+#endif
/* setjmp */
|