Release 2.33.1
[external/binutils.git] / libctf / ctf-decls.h
index d12409e..b60a48f 100644 (file)
@@ -24,6 +24,7 @@
 
 #include <stddef.h>
 #include <stdlib.h>
+#include "libiberty.h"
 
 #if HAVE_QSORT_R_ARG_LAST
 static inline void
@@ -62,6 +63,10 @@ void ctf_qsort_r (void *base, size_t nmemb, size_t size,
              void *arg);
 #endif
 
+#ifndef HAVE_O_CLOEXEC
+# define O_CLOEXEC 0
+#endif
+
 #undef MAX
 #undef MIN
 #define MAX(a, b) ((a) > (b) ? (a) : (b))