chiark / gitweb /
rework socket handling
[elogind.git] / util.h
diff --git a/util.h b/util.h
index 9dfe631b8a5aa3b88c033f4fb394c52ddf781737..67314146f3a7516dd6e38dbe52468a78fca3e243 100644 (file)
--- a/util.h
+++ b/util.h
@@ -7,6 +7,7 @@
 #include <time.h>
 #include <sys/time.h>
 #include <stdbool.h>
+#include <stdlib.h>
 
 typedef uint64_t usec_t;
 
@@ -52,7 +53,7 @@ static inline bool is_path_absolute(const char *p) {
 bool endswith(const char *s, const char *postfix);
 bool startswith(const char *s, const char *prefix);
 
-int nointr_close(int fd);
+int close_nointr(int fd);
 
 int parse_boolean(const char *v);