shithub: drawterm

Download patch

ref: 5fe2b255e45d5885e240936109d7f19228bcc3d4
parent: 9110fed39de2e8cccf517f49089a1b6f64d346c3
author: Dave MacFarlane <driusan@gmail.com>
date: Sat Jan 20 10:42:03 EST 2018

Add DragonFly support to drawterm

--- /dev/null	Mon Oct 18 12:05:45 2021
+++ b/Make.dragonfly	Sat Jan 20 10:42:03 2018
@@ -0,0 +1,21 @@
+# DragonFlyBSD
+PTHREAD=-pthread
+AR=ar
+AS=as
+RANLIB=ranlib
+X11=/usr/local
+CC=gcc
+CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+O=o
+OS=posix
+GUI=x11
+LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11 -ggdb
+LDFLAGS=$(PTHREAD)
+TARG=drawterm
+AUDIO=none
+
+all: default
+
+libmachdep.a:
+	arch=`uname -m|sed 's/i.86/386/;s/Power Macintosh/power/; s/x86_64/amd64/'`; \
+	(cd posix-$$arch &&  make)
--- a/include/dtos.h	Sat Jan  6 14:09:16 2018
+++ b/include/dtos.h	Sat Jan 20 10:42:03 2018
@@ -1,4 +1,4 @@
-#if defined(linux) || defined(IRIX) || defined(SOLARIS) || defined(OSF1) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__) || defined(__sun) || defined(sun) || defined(__OpenBSD__)
+#if defined(linux) || defined(IRIX) || defined(SOLARIS) || defined(OSF1) || defined(__FreeBSD__) || defined(__APPLE__) || defined(__NetBSD__) || defined(__sun) || defined(sun) || defined(__OpenBSD__) || defined(__DragonFly__)
 #	include "unix.h"
 #	ifdef __APPLE__
 #		define panic dt_panic