summaryrefslogtreecommitdiffstats
path: root/source/include/includes.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/include/includes.h')
-rw-r--r--source/include/includes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/include/includes.h b/source/include/includes.h
index a811731c302..b05d8fbfd59 100644
--- a/source/include/includes.h
+++ b/source/include/includes.h
@@ -314,6 +314,12 @@
#endif
#if defined(HAVE_RPC_RPC_H)
+/*
+ * Check for AUTH_ERROR define conflict with rpc/rpc.h in prot.h.
+ */
+#if defined(HAVE_SYS_SECURITY_H) && defined(HAVE_RPC_AUTH_ERROR_CONFLICT)
+#undef AUTH_ERROR
+#endif
#include <rpc/rpc.h>
#endif