diff options
author | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2014-03-22 23:46:51 +0100 |
---|---|---|
committer | Danny Al-Gaaf <danny.al-gaaf@bisect.de> | 2014-04-22 20:47:50 +0200 |
commit | 4b6c76c659047e59f51904282a53ae7d9b2a0bb7 (patch) | |
tree | 0fa5ba011b642a3ce757d0f85d4b5687fabb0543 /Examples | |
parent | bd6cddba8b842283d921315e03eda7a22b0e8211 (diff) | |
download | jerasure-4b6c76c659047e59f51904282a53ae7d9b2a0bb7.tar.gz |
Examples/*coder.c: add missing include of unistd.h
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>
Diffstat (limited to 'Examples')
-rw-r--r-- | Examples/decoder.c | 1 | ||||
-rw-r--r-- | Examples/encoder.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/Examples/decoder.c b/Examples/decoder.c index f00fce6..0f6e030 100644 --- a/Examples/decoder.c +++ b/Examples/decoder.c @@ -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> diff --git a/Examples/encoder.c b/Examples/encoder.c index 2c8cd67..8b9184f 100644 --- a/Examples/encoder.c +++ b/Examples/encoder.c @@ -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> |