diff options
-rw-r--r-- | contrib/uuid-ossp/uuid-ossp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/uuid-ossp/uuid-ossp.c b/contrib/uuid-ossp/uuid-ossp.c index 5d00f392ccc..fca39d79378 100644 --- a/contrib/uuid-ossp/uuid-ossp.c +++ b/contrib/uuid-ossp/uuid-ossp.c @@ -30,14 +30,14 @@ */ #define uuid_hash bsd_uuid_hash -#ifdef HAVE_UUID_H +#if defined(HAVE_UUID_H) #include <uuid.h> -#endif -#ifdef HAVE_OSSP_UUID_H +#elif defined(HAVE_OSSP_UUID_H) #include <ossp/uuid.h> -#endif -#ifdef HAVE_UUID_UUID_H +#elif defined(HAVE_UUID_UUID_H) #include <uuid/uuid.h> +#else +#error "please use configure's --with-uuid switch to select a UUID library" #endif #undef uuid_hash |