summaryrefslogtreecommitdiff
path: root/sysutils/apcupsd/files/patch-include_apc.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/apcupsd/files/patch-include_apc.h')
-rw-r--r--sysutils/apcupsd/files/patch-include_apc.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sysutils/apcupsd/files/patch-include_apc.h b/sysutils/apcupsd/files/patch-include_apc.h
new file mode 100644
index 000000000000..a91ee644e7b8
--- /dev/null
+++ b/sysutils/apcupsd/files/patch-include_apc.h
@@ -0,0 +1,17 @@
+--- include/apc.h.orig 2015-02-17 20:18:17 UTC
++++ include/apc.h
+@@ -148,13 +148,7 @@
+ /* System includes conditionally included */
+
+ #ifdef HAVE_LIBWRAP
+-# ifdef __cplusplus
+- extern "C" {
+-# endif
+-# include <tcpd.h>
+-# ifdef __cplusplus
+- };
+-# endif
++# include "tcpd.h"
+ #endif
+
+ #endif