summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2013-12-26 15:16:14 +0100
committerOlivier Gayot <duskcoder@gmail.com>2014-01-18 13:44:39 +0100
commitbd9efbd97da6d97a1a19522fed29d3c9c4d7d91b (patch)
treecbaf3d9c6cf8f7433afd5f52b290a5c66913d6e9
parent5e7842a056f7e99faadc68857a34f4f7cd307898 (diff)
rb: fix compilation issue
rb.h uses an inline definition of rb_remove which uses NULL. since the standard declaration of NULL can be found in stdlib.h, we need to include it.
-rw-r--r--rb.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rb.h b/rb.h
index 1483977..c5bde89 100644
--- a/rb.h
+++ b/rb.h
@@ -19,6 +19,9 @@
#ifndef RING_BUFFER_H
#define RING_BUFFER_H
+/* needed for the definition of NULL */
+#include <stdlib.h>
+
#include <stdint.h>
#include <sys/types.h>