From: Gary Williams Date: Thu, 1 Apr 1999 15:51:11 +0000 (+0000) Subject: NT port X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~293 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5fc6a9b0ca632e3edc488783892adde423f669fa;p=openldap NT port --- diff --git a/libraries/liblutil/liblutil.dsp b/libraries/liblutil/liblutil.dsp index e104adebd9..54bc0416a7 100644 --- a/libraries/liblutil/liblutil.dsp +++ b/libraries/liblutil/liblutil.dsp @@ -60,7 +60,7 @@ LIB32=link.exe -lib # PROP Intermediate_Dir "Debug\liblutil" # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /GX /Z7 /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c -# ADD CPP /nologo /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c +# ADD CPP /nologo /MTd /W3 /GX /Z7 /Od /I "..\..\include" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c BSC32=bscmake.exe # ADD BASE BSC32 /nologo # ADD BSC32 /nologo @@ -120,10 +120,6 @@ SOURCE=.\md5.c # End Source File # Begin Source File -SOURCE=.\memcmp.c -# End Source File -# Begin Source File - SOURCE=.\passwd.c # End Source File # Begin Source File @@ -132,15 +128,7 @@ SOURCE=..\..\include\portable.h # End Source File # Begin Source File -SOURCE=.\setproctitle.c -# End Source File -# Begin Source File - SOURCE=.\sha1.c # End Source File -# Begin Source File - -SOURCE=.\tempnam.c -# End Source File # End Target # End Project diff --git a/libraries/liblutil/lockf.c b/libraries/liblutil/lockf.c index 3daf88c695..f37d71a34e 100644 --- a/libraries/liblutil/lockf.c +++ b/libraries/liblutil/lockf.c @@ -51,6 +51,18 @@ # define LOCK_API "flock" #endif +#if !defined(USE_LOCKF) && !defined(USE_FCNTL) && !defined(USE_FLOCK) +int lutil_lockf ( int fd ) { + fd = fd; + return 0; +} + +int lutil_unlockf ( int fd ) { + fd = fd; + return 0; +} +#endif + #ifdef USE_LOCKF int lutil_lockf ( int fd ) { /* use F_LOCK instead of F_TLOCK, ie: block */ diff --git a/libraries/liblutil/sha1.c b/libraries/liblutil/sha1.c index 98360788bf..a0df8ac95b 100644 --- a/libraries/liblutil/sha1.c +++ b/libraries/liblutil/sha1.c @@ -138,7 +138,7 @@ void lutil_SHA1Update( lutil_SHA1_CTX *context, const unsigned char *data, - u_int len + uint32 len ) { u_int i, j;