SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
27
databases/openldap/patches/patch-libraries_liblutil_uuid_c
Normal file
27
databases/openldap/patches/patch-libraries_liblutil_uuid_c
Normal file
|
@ -0,0 +1,27 @@
|
|||
OpenLDAP's first choice uuid functions are close to but not quite the same
|
||||
as we have in libc, differences being that we don't have uuid_to_str() (in
|
||||
fact I don't see which other OS might have it either, no other software in
|
||||
debian codesearch uses this), and it needs uuid.h not sys/uuid.h.
|
||||
Patch to use it, avoiding the need for Linux libuuid.
|
||||
|
||||
Index: libraries/liblutil/uuid.c
|
||||
--- libraries/liblutil/uuid.c.orig
|
||||
+++ libraries/liblutil/uuid.c
|
||||
@@ -40,7 +40,7 @@
|
||||
#include <ac/string.h> /* get memcmp() */
|
||||
|
||||
#ifdef HAVE_UUID_TO_STR
|
||||
-# include <sys/uuid.h>
|
||||
+# include <uuid.h>
|
||||
#elif defined( HAVE_UUID_GENERATE )
|
||||
# include <uuid/uuid.h>
|
||||
#elif defined( _WIN32 )
|
||||
@@ -284,7 +284,7 @@ lutil_uuidstr( char *buf, size_t len )
|
||||
return 0;
|
||||
}
|
||||
|
||||
- uuid_to_str( &uu, &s, &rc );
|
||||
+ uuid_to_string( &uu, &s, &rc );
|
||||
if ( rc != uuid_s_ok ) {
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue