blob: 65fc0d8783332d6967f61eaa3b2dbbfd2f8163d4 (
plain) (
blame)
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
|
--- src/bin/iclass/direct.c.orig Sat Dec 12 13:40:42 1992
+++ src/bin/iclass/direct.c Wed Jul 9 00:17:58 2003
@@ -30,13 +30,22 @@
#include <OS/string.h>
#include <OS/types.h>
#include <stddef.h>
+#if __FreeBSD__ >= 2
+#include <osreldate.h>
+#if (__FreeBSD_cc_version < 400002 && __FreeBSD_version < 500000)
#include <osfcn.h>
+#endif
+#endif
#include <pwd.h>
#include <string.h>
#include <stdlib.h>
#include <sys/stat.h>
-#ifdef __DECCXX
+#if __FreeBSD_cc_version >= 400003
+#include <unistd.h>
+#endif
+
+#if (defined(__DECCXX) || (__FreeBSD_version > 500000))
extern "C" {
extern uid_t getuid();
extern struct passwd* getpwuid(uid_t);
|