Make this port work on OpenBSD, and still work on FreeBSD. Fix a warning

for using value.h.
Submitted by:	Todd T Fries <toddf@acm.org>
This commit is contained in:
Warner Losh 1997-09-17 23:30:48 +00:00
parent 9f2f980a36
commit 9b38c89bc6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=7943

View File

@ -12,3 +12,18 @@
libC: libDnd.a
--- DragAndDrop.c.orig Mon Sep 15 21:02:20 1997
+++ DragAndDrop.c Mon Sep 15 21:03:53 1997
@@ -22,7 +22,12 @@
#include <X11/Xmu/WinUtil.h>
#include <stdio.h>
#include <stdlib.h>
+#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__)
+#include <limits.h>
+#define MAXINT INT_MAX
+#else
#include <values.h>
+#endif
/* Local variables */
static Display *dpy; /* current display */