]> git-server-git.apps.pok.os.sepia.ceph.com Git - jerasure.git/commitdiff
Examples/*coder.c: add missing include of unistd.h
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Sat, 22 Mar 2014 22:46:51 +0000 (23:46 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 22 Apr 2014 18:47:50 +0000 (20:47 +0200)
Fix warning: implicit declaration of function 'getcwd' is invalid in
C99 [-Wimplicit-function-declaration]

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
Examples/decoder.c
Examples/encoder.c

index f00fce66b1aabc2923f848620f66e2b457abcc38..0f6e030722c35c7e8fe186c731b7fc30f837827a 100644 (file)
@@ -62,6 +62,7 @@ same arguments, and encoder.c does error check.
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
+#include <unistd.h>
 #include <sys/time.h>
 #include <sys/stat.h>
 #include <signal.h>
index 2c8cd671a837fe86e167d3255456685fe2a65ff9..8b9184f2e436a797e6ac52405cb8fa402af12e40 100644 (file)
@@ -59,6 +59,7 @@ is the file name with "_k#" or "_m#" and then the extension.
 #include <time.h>
 #include <sys/time.h>
 #include <sys/stat.h>
+#include <unistd.h>
 #include <string.h>
 #include <stdio.h>
 #include <stdlib.h>