ports/devel/apr2/files/patch-rand.c
Craig Rodrigues db1076e1ea In rand.c, include <uuid.h> (from FreeBSD 5.x and up)
*OR* <uuid/uuid.h> (from e2fsprogs port), not <uuid.h> *AND* <uuid/uuid.h>

PR:		ports/88406
Reported by:	lofi
2005-11-03 01:36:53 +00:00

16 lines
371 B
C

--- apr-1.2.2/misc/unix/rand.c.orig Wed Nov 2 20:17:10 2005
+++ apr-1.2.2/misc/unix/rand.c Wed Nov 2 20:17:43 2005
@@ -35,11 +35,10 @@
#if APR_HAVE_SYS_UN_H
#include <sys/un.h>
#endif
-#ifdef HAVE_UUID_UUID_H
-#include <uuid/uuid.h>
-#endif
#ifdef HAVE_UUID_H
#include <uuid.h>
+#elif defined(HAVE_UUID_UUID_H)
+#include <uuid/uuid.h>
#endif
#ifndef SHUT_RDWR