summaryrefslogtreecommitdiff
path: root/src/test/stow.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/stow.c')
-rw-r--r--src/test/stow.c9
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;