summaryrefslogtreecommitdiff
path: root/floppyd.c
diff options
context:
space:
mode:
Diffstat (limited to 'floppyd.c')
-rw-r--r--floppyd.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/floppyd.c b/floppyd.c
index 1601271..0940131 100644
--- a/floppyd.c
+++ b/floppyd.c
@@ -1,5 +1,5 @@
/* Copyright 1999 Peter Schlaile.
- * Copyright 1999-2005,2007-2009 Alain Knaff.
+ * Copyright 1999-2005,2007-2009,2022 Alain Knaff.
* This file is part of mtools.
*
* Mtools is free software: you can redistribute it and/or modify
@@ -40,10 +40,15 @@
#include "sysincludes.h"
#include "grp.h"
-#include <X11/Xlib.h>
-#include <X11/Xauth.h>
#include "floppyd_io.h"
+#ifdef HAVE_X11_XAUTH_H
+#include <X11/Xauth.h>
+#endif
+
+#ifdef HAVE_X11_XLIB_H
+#include <X11/Xlib.h>
+#endif
#ifndef SIGCLD
#define SIGCLD SIGCHLD