diff options
Diffstat (limited to 'net/openafs/patches/patch-src-external-heimdal-roken-roken-common.h')
-rw-r--r-- | net/openafs/patches/patch-src-external-heimdal-roken-roken-common.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/net/openafs/patches/patch-src-external-heimdal-roken-roken-common.h b/net/openafs/patches/patch-src-external-heimdal-roken-roken-common.h new file mode 100644 index 00000000000..95e32fd24b2 --- /dev/null +++ b/net/openafs/patches/patch-src-external-heimdal-roken-roken-common.h @@ -0,0 +1,38 @@ +$NetBSD: patch-src-external-heimdal-roken-roken-common.h,v 1.1 2012/05/02 23:19:25 christos Exp $ + +--- src/external/heimdal/roken/roken-common.h.orig 2012-04-30 16:41:30.000000000 -0400 ++++ src/external/heimdal/roken/roken-common.h 2012-04-30 17:45:23.000000000 -0400 +@@ -335,9 +335,11 @@ + wait_for_process_timed(pid_t, time_t (*)(void *), + void *, time_t); + ++#ifndef _KERNEL + #define pipe_execv rk_pipe_execv + ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL + pipe_execv(FILE**, FILE**, FILE**, const char*, ...); ++#endif + + #define print_version rk_print_version + ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL +@@ -361,6 +363,7 @@ + ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL + esetenv(const char *, const char *, int); + ++struct sockaddr; + #define socket_set_address_and_port rk_socket_set_address_and_port + ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL + socket_set_address_and_port (struct sockaddr *, const void *, int); +@@ -481,11 +484,13 @@ + ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL + rk_cloexec(int); + ++#ifndef _KERNEL + ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL + rk_cloexec_file(FILE *); + + ROKEN_LIB_FUNCTION void ROKEN_LIB_CALL + rk_cloexec_dir(DIR *); ++#endif + + ROKEN_LIB_FUNCTION int ROKEN_LIB_CALL + ct_memcmp(const void *, const void *, size_t); |