--- source3/smbd/globals.h.orig	2017-05-15 06:01:34 -0500
+++ source3/smbd/globals.h	2017-05-15 06:02:44 -0500
@@ -22,6 +22,10 @@
 #include "librpc/gen_ndr/smbXsrv.h"
 #include "smbprofile.h"
 
+#ifdef _AIX
+#define O_NOFOLLOW 0
+#endif
+
 #ifdef USE_DMAPI
 struct smbd_dmapi_context;
 extern struct smbd_dmapi_context *dmapi_ctx;
