blob: 291925e8d02b9bed11c75e0441bea1da381dad09 (
plain)
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
|
Index: b/usr/src/head/libgen.h
===================================================================
--- a/usr/src/head/libgen.h
+++ b/usr/src/head/libgen.h
@@ -37,7 +37,7 @@
#ifndef _LIBGEN_H
#define _LIBGEN_H
-#include <sys/feature_tests.h>
+#include <features.h>
#include <sys/types.h>
#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
@@ -49,7 +49,10 @@
extern "C" {
#endif
+#ifndef basename
+#define basename basename
extern char *basename(char *);
+#endif
extern char *dirname(char *);
#if !defined(_XPG6) || defined(__EXTENSIONS__)
Index: b/usr/src/head/string.h
===================================================================
--- a/usr/src/head/string.h
+++ b/usr/src/head/string.h
@@ -150,6 +150,10 @@ extern char *strdup(const char *);
extern void *mempcpy(void *, const void *, size_t);
extern void *memrchr(const void *, int, size_t);
extern void *rawmemchr(const void *, int);
+#ifndef basename
+#define basename basename
+extern char *basename(const char *);
+#endif
#endif
#if defined(__EXTENSIONS__) || \
|