diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2013-05-04 21:39:27 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2013-05-04 21:39:27 +0000 |
commit | fec6336699f34758d3e6cb41b2edf902fedb9035 (patch) | |
tree | 8256c1dbf3ca7c9e58a3dbecf07cf826fb2e0ce2 /src/test/stow.c | |
parent | 7dbffd7e2b0067e834801617c5c486e3177f6709 (diff) | |
download | libical-master.tar.gz |
libical-1.0HEADlibical-1.0master
Diffstat (limited to 'src/test/stow.c')
-rw-r--r-- | src/test/stow.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/stow.c b/src/test/stow.c index b7a9ff4..2836604 100644 --- a/src/test/stow.c +++ b/src/test/stow.c @@ -23,6 +23,9 @@ ======================================================================*/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <errno.h> @@ -33,13 +36,15 @@ #include <stdlib.h> #include <sys/utsname.h> /* for uname */ #include <sys/stat.h> /* for stat */ +#if defined(HAVE_UNISTD_H) #include <unistd.h> /* for stat, getpid, getopt */ +#endif #include <pwd.h> /* For getpwent */ #include <sys/types.h> /* For getpwent */ #include <ctype.h> /* for tolower */ #include <libical/ical.h> -#include <libical/icalss.h> +#include <libicalss/icalss.h> char* program_name; #define TMPSIZE 2048 @@ -519,8 +524,10 @@ void usage(char *message) void get_options(int argc, char* argv[], struct options_struct *opt) { int c; +#if !defined(HAVE_UNISTD_H) extern char *optarg; extern int optind, optopt; +#endif int errflg=0; opt->storage = STORE_IN_FILE; |