Commit 4b6c76c659047e59f51904282a53ae7d9b2a0bb7

Authored by Danny Al-Gaaf
1 parent bd6cddba
Exists in master

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>
Showing 2 changed files with 2 additions and 0 deletions   Show diff stats
Examples/decoder.c
... ... @@ -62,6 +62,7 @@ same arguments, and encoder.c does error check.
62 62 #include <stdlib.h>
63 63 #include <string.h>
64 64 #include <time.h>
  65 +#include <unistd.h>
65 66 #include <sys/time.h>
66 67 #include <sys/stat.h>
67 68 #include <signal.h>
... ...
Examples/encoder.c
... ... @@ -59,6 +59,7 @@ is the file name with &quot;_k#&quot; or &quot;_m#&quot; and then the extension.
59 59 #include <time.h>
60 60 #include <sys/time.h>
61 61 #include <sys/stat.h>
  62 +#include <unistd.h>
62 63 #include <string.h>
63 64 #include <stdio.h>
64 65 #include <stdlib.h>
... ...