Browse Source

fix a warning
implicit declaration of function ‘perror’

Olivier Marty 8 years ago
parent
commit
697358c0e6
3 changed files with 3 additions and 0 deletions
  1. 1 0
      events.c
  2. 1 0
      rich_text.c
  3. 1 0
      time.c

+ 1 - 0
events.c

@@ -22,6 +22,7 @@
 #include "events.h"
 #include <assert.h>
 #include <stdlib.h>
+#include <stdio.h>
 
 t_events eventsInit(int initSize)
 {

+ 1 - 0
rich_text.c

@@ -19,6 +19,7 @@
 #include "rich_text.h"
 #include <string.h>
 #include <stdlib.h>
+#include <stdio.h>
 
 
 char *strnstr(const char *s, const char *find, size_t slen)

+ 1 - 0
time.c

@@ -19,6 +19,7 @@
 #include "time.h"
 #include <errno.h>
 #include <stdlib.h>
+#include <stdio.h>
 
 void normalize(struct timespec *t)
 {