summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
-rw-r--r--dsimple.h8
2 files changed, 4 insertions, 9 deletions
diff --git a/configure.ac b/configure.ac
index 5c6b2e6..ac15324 100644
--- a/configure.ac
+++ b/configure.ac
@@ -34,11 +34,8 @@ XORG_DEFAULT_OPTIONS
AC_CONFIG_HEADERS([config.h])
-
-
# Checks for pkg-config packages
-PKG_CHECK_MODULES(XLSFONTS, x11)
-
+PKG_CHECK_MODULES(XLSFONTS, [x11 xproto >= 7.0.17])
AC_CONFIG_FILES([
Makefile
diff --git a/dsimple.h b/dsimple.h
index 6af16fd..c01f85d 100644
--- a/dsimple.h
+++ b/dsimple.h
@@ -39,6 +39,8 @@ from The Open Group.
* Send bugs, etc. to chariot@athena.mit.edu.
*/
+#include <X11/Xfuncproto.h>
+
/* Simple helper macros */
#ifndef MAX
#define MAX(a,b) (((a)>(b))?(a):(b))
@@ -65,8 +67,4 @@ void usage(void);
#define X_USAGE "[host:display]" /* X arguments handled by
Get_Display_Name */
-#ifdef __GNUC__
-void Fatal_Error(char *, ...) __attribute__((__noreturn__));
-#else
-void Fatal_Error(char *, ...);
-#endif
+void Fatal_Error(char *, ...) _X_NORETURN;