diff options
author | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2005-05-05 14:44:04 +0000 |
---|---|---|
committer | jorton <jorton@13f79535-47bb-0310-9956-ffa450edef68> | 2005-05-05 14:44:04 +0000 |
commit | 0462033c8c6055453a95dad3ac7edbecf2974a59 (patch) | |
tree | d7a8b0d5a7d3e2f5f52ad9239b5f1d9f3dfbc33e /misc/unix | |
parent | 0259011c10819bfd3ae0209f7fed1f0121d7ec79 (diff) | |
download | libapr-0462033c8c6055453a95dad3ac7edbecf2974a59.tar.gz |
* configure.in: Simplify uuid checks.
* misc/unix/rand.c: Use #ifdef rather than #if for defined-or-not
HAVE_UUID_* macros.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@168337 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc/unix')
-rw-r--r-- | misc/unix/rand.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/unix/rand.c b/misc/unix/rand.c index fe9b7b714..4691f08a1 100644 --- a/misc/unix/rand.c +++ b/misc/unix/rand.c @@ -35,10 +35,10 @@ #if APR_HAVE_SYS_UN_H #include <sys/un.h> #endif -#if HAVE_UUID_UUID_H +#ifdef HAVE_UUID_UUID_H #include <uuid/uuid.h> #endif -#if HAVE_UUID_H +#ifdef HAVE_UUID_H #include <uuid.h> #endif @@ -46,7 +46,7 @@ #define SHUT_RDWR 2 #endif -#if HAVE_UUID_CREATE +#if defined(HAVE_UUID_CREATE) APR_DECLARE(apr_status_t) apr_os_uuid_get(unsigned char *uuid_data) { @@ -59,7 +59,7 @@ APR_DECLARE(apr_status_t) apr_os_uuid_get(unsigned char *uuid_data) return APR_SUCCESS; } -#elif HAVE_UUID_GENERATE +#elif defined(HAVE_UUID_GENERATE) APR_DECLARE(apr_status_t) apr_os_uuid_get(unsigned char *uuid_data) { |