diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-07-13 20:44:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:23:02 -0500 |
commit | 84db0662071a6ab61ae21a5da35317d8aed55d75 (patch) | |
tree | 2a5e6d65b28acc82cad1da3ec9287bb21c54e3b0 /source4/lib/replace/win32/config.m4 | |
parent | 0639fe016e56ccd84b05da678219d8bb6c68432c (diff) | |
download | samba-84db0662071a6ab61ae21a5da35317d8aed55d75.tar.gz samba-84db0662071a6ab61ae21a5da35317d8aed55d75.tar.bz2 samba-84db0662071a6ab61ae21a5da35317d8aed55d75.zip |
r8434: Win32 portability updates from Steven Edwards <steven_ed4153@yahoo.com>:
- undefine anything in the win32 api or PSDK headers that Samba already defines
- map BSD error codes to Winsock Error codes
(This used to be commit d2ea6191259a28a32a1f4ffdff067b1a80e8dcc9)
Diffstat (limited to 'source4/lib/replace/win32/config.m4')
-rw-r--r-- | source4/lib/replace/win32/config.m4 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/lib/replace/win32/config.m4 b/source4/lib/replace/win32/config.m4 new file mode 100644 index 0000000000..9ac84cdf2a --- /dev/null +++ b/source4/lib/replace/win32/config.m4 @@ -0,0 +1,20 @@ +AC_CHECK_HEADERS(direct.h windows.h winsock2.h ws2tcpip.h) + +####################################### +# Check for mkdir mode +AC_CACHE_CHECK( [whether mkdir supports mode], ac_mkdir_has_mode, + AC_TRY_COMPILE([ + #include <stdio.h> + #ifdef HAVE_DIRECT_H + #include <direct.h> + #endif],[ + mkdir("foo",0777); + return 0; + ], + ac_mkdir_has_mode="yes", + ac_mkdir_has_mode="no") ) + +if test "$ac_mkdir_has_mode" = "yes" +then + AC_DEFINE(HAVE_MKDIR_MODE, 1, [Define if target mkdir supports mode option]) +fi |