diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2013-12-26 15:16:14 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2014-01-18 13:44:39 +0100 |
commit | bd9efbd97da6d97a1a19522fed29d3c9c4d7d91b (patch) | |
tree | cbaf3d9c6cf8f7433afd5f52b290a5c66913d6e9 | |
parent | 5e7842a056f7e99faadc68857a34f4f7cd307898 (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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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> |