1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-29 00:20:40 -04:00
ports/devel/kBuild/files/patch-src_kmk_kmkbuiltin_test.c
Baptiste Daroussin 5b3b8a4526 Fix build with clang, dprintf(3), getline(3)
Grab patch from upstream to fix build with clang
Grab patch from gentoo to fix build with dprintf
Make the build respect MAKE_ENV
Pass _WITH_GETLINE and _WITH_DPRINTF to ensure using the version from libc
Make the build respect CFLAGS
2016-07-31 16:12:38 +00:00

15 lines
427 B
C

--- src/kmk/kmkbuiltin/test.c.orig 2012-07-17 22:30:16 UTC
+++ src/kmk/kmkbuiltin/test.c
@@ -201,7 +201,11 @@ extern void *xmalloc(unsigned int sz)
}
#endif
-int kmk_builtin_test(int argc, char **argv, char **envp, char ***ppapszArgvSpawn)
+int kmk_builtin_test(int argc, char **argv, char **envp
+#ifndef kmk_builtin_test
+ , char ***ppapszArgvSpawn
+#endif
+ )
{
int res;
char **argv_spawn;