aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-30 15:27:18 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-30 15:27:18 +0200
commitfda1aa1b784eb587e2129f4d2ddaa951c7b86b2f (patch)
treed923c1f4a14a3d6775cb5eb68bfecfafb8a50cf7
parentwhitespace (diff)
downloadslibc-fda1aa1b784eb587e2129f4d2ddaa951c7b86b2f.tar.gz
slibc-fda1aa1b784eb587e2129f4d2ddaa951c7b86b2f.tar.bz2
slibc-fda1aa1b784eb587e2129f4d2ddaa951c7b86b2f.tar.xz
add missing inclusions of stddef.h to define NULL
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/error.c1
-rw-r--r--src/slibc-error.c1
-rw-r--r--src/string/strerror.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/src/error.c b/src/error.c
index ee39ccf..eb73276 100644
--- a/src/error.c
+++ b/src/error.c
@@ -19,6 +19,7 @@
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
+#include <stddef.h>
diff --git a/src/slibc-error.c b/src/slibc-error.c
index fe2f94b..0680751 100644
--- a/src/slibc-error.c
+++ b/src/slibc-error.c
@@ -20,6 +20,7 @@
#include <stdio.h>
#include <unistd.h>
#include <string.h>
+#include <stddef.h>
diff --git a/src/string/strerror.c b/src/string/strerror.c
index 417d622..dd1d142 100644
--- a/src/string/strerror.c
+++ b/src/string/strerror.c
@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <string.h>
+#include <stddef.h>
+
/**