summaryrefslogtreecommitdiffstats
path: root/src/partgpt.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-10-06 20:20:45 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2008-10-06 20:20:45 +0200
commitb9d5556004fddc709e1c719ebff20d6198094541 (patch)
tree35c4562fa1e671bb67c52cc2181774370898afb1 /src/partgpt.c
parent33a01be952abdca832440063301065b3bbb6d85c (diff)
Portability fixes for OpenBSD when e2fsprogs port is used
Diffstat (limited to 'src/partgpt.c')
-rw-r--r--src/partgpt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/partgpt.c b/src/partgpt.c
index 621595e..809781a 100644
--- a/src/partgpt.c
+++ b/src/partgpt.c
@@ -33,12 +33,13 @@
#endif
#include <ctype.h> /* tolower */
#include "types.h"
-#ifdef HAVE_UUID_UUID_H
+#if defined(HAVE_UUID_H)
+#include <uuid.h>
+#elif defined(HAVE_UUID_UUID_H)
#include <uuid/uuid.h>
-#elif defined(HAVE_SYS_UUID_H)
+#endif
+#if defined(HAVE_SYS_UUID_H)
#include <sys/uuid.h>
-#elif defined(HAVE_UUID_H)
-#include <uuid.h>
#endif
#include "common.h"
#include "testdisk.h"