summaryrefslogtreecommitdiff
path: root/src/distcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/distcc.c')
-rw-r--r--src/distcc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/distcc.c b/src/distcc.c
index b6db148..16d10a6 100644
--- a/src/distcc.c
+++ b/src/distcc.c
@@ -41,6 +41,7 @@
#include <errno.h>
#include <signal.h>
+#if HAVE_LIBIBERTY
#if defined (HAVE_LIBIBERTY_H)
#include <libiberty.h>
#elif defined (HAVE_LIBIBERTY_LIBIBERTY_H)
@@ -48,6 +49,7 @@
#else
#error Need libiberty.h
#endif
+#endif
#include "distcc.h"
#include "trace.h"
@@ -241,9 +243,11 @@ int main(int argc, char **argv)
compiler_name = (char *) dcc_find_basename(argv[0]);
+#if HAVE_LIBIBERTY
/* Expand @FILE arguments. */
expandargv(&argc, &argv);
-
+#endif
+
/* Ignore SIGPIPE; we consistently check error codes and will
* see the EPIPE. */
dcc_ignore_sigpipe(1);