aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kbuild/uclibc.patch
blob: cf38529f1721198cc9c4d7a2daa76aa8e1efabce (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
--- ./src/lib/k/kDefs.h.orig
+++ ./src/lib/k/kDefs.h
@@ -78,7 +78,7 @@
 #  define K_OS      K_OS_DRAGONFLY
 # elif defined(__FreeBSD__) /*??*/
 #  define K_OS      K_OS_FREEBSD
-# elif defined(__gnu_linux__)
+# elif defined(__gnu_linux__) || defined(__UCLIBC__)
 #  define K_OS      K_OS_LINUX
 # elif defined(__NetBSD__) /*??*/
 #  define K_OS      K_OS_NETBSD
diff --git a/src/kmk/kmkbuiltin/fts.c b/src/kmk/kmkbuiltin/fts.c
index f913f17..febb900 100644
--- a/src/kmk/kmkbuiltin/fts.c
+++ b/src/kmk/kmkbuiltin/fts.c
@@ -75,7 +75,7 @@ __RCSID("$NetBSD: __fts13.c,v 1.44 2005/01/19 00:59:48 mycroft Exp $");
 #endif
 
 #if ! HAVE_NBTOOL_CONFIG_H
-# if !defined(__sun__) && !defined(__gnu_linux__)
+# if !defined(__sun__) && !defined(__gnu_linux__) && !defined(__UCLIBC__)
 #  define HAVE_STRUCT_DIRENT_D_NAMLEN 1
 # endif
 #endif