diff options
author | Mike Hommey <mh@glandium.org> | 2020-08-20 23:35:05 +0000 |
---|---|---|
committer | Mike Hommey <mh@glandium.org> | 2020-08-20 23:35:05 +0000 |
commit | 46b2977ebf496a44d4bc5fab6b1a91b3c395ae7c (patch) | |
tree | 87058168fc71acdb75db64044e97eefde7175a80 | |
parent | 484bff6ad67f0b67fe7310a79964be0ece9d3592 (diff) | |
download | nspr-hg-46b2977ebf496a44d4bc5fab6b1a91b3c395ae7c.tar.gz |
Bug 1658671 - Add missing #include for unistd.h for getopt. r=kaie
Differential Revision: https://phabricator.services.mozilla.com/D86796
-rw-r--r-- | pr/tests/sel_spd.c | 4 | ||||
-rw-r--r-- | pr/tests/testfile.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/pr/tests/sel_spd.c b/pr/tests/sel_spd.c index bb908244..6e3f66fe 100644 --- a/pr/tests/sel_spd.c +++ b/pr/tests/sel_spd.c @@ -16,6 +16,10 @@ #include <errno.h> #include <string.h> +#if defined(XP_UNIX) +#include <unistd.h> +#endif + #ifdef DEBUG #define PORT_INC_DO +100 #else diff --git a/pr/tests/testfile.c b/pr/tests/testfile.c index 88d4afbf..79d8a05f 100644 --- a/pr/tests/testfile.c +++ b/pr/tests/testfile.c @@ -17,6 +17,10 @@ #include <pthread.h> #endif +#if defined(XP_UNIX) +#include <unistd.h> +#endif + #if defined(XP_OS2) #define INCL_DOSFILEMGR #include <os2.h> |