9front - general discussion about 9front
 help / color / mirror / Atom feed
* DragonFly drawterm support
@ 2018-01-20 16:10 Dave MacFarlane
  2018-01-20 21:32 ` [9front] " hiro
  0 siblings, 1 reply; 2+ messages in thread
From: Dave MacFarlane @ 2018-01-20 16:10 UTC (permalink / raw)
  To: 9front mailing list

[-- Attachment #1: Type: text/plain, Size: 89 bytes --]

I needed to drawterm from DragonFly, so I added support. Simple patch attached..

- Dave

[-- Attachment #2: dragonterm.patch --]
[-- Type: text/x-patch, Size: 1575 bytes --]

# HG changeset patch
# User Dave MacFarlane <driusan@gmail.com>
# Date 1516462923 18000
#      Sat Jan 20 10:42:03 2018 -0500
# Node ID d61dd048d7b4c27508eace6d668dfa5eaac4c7ff
# Parent  b977d130e0a1d66e5e2cc442861f299396efeda2
Add DragonFly support to drawterm

diff -r b977d130e0a1 -r d61dd048d7b4 Make.dragonfly
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Make.dragonfly	Sat Jan 20 10:42:03 2018 -0500
@@ -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)
diff -r b977d130e0a1 -r d61dd048d7b4 include/dtos.h
--- a/include/dtos.h	Sat Jan 06 20:09:16 2018 +0100
+++ b/include/dtos.h	Sat Jan 20 10:42:03 2018 -0500
@@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9front] DragonFly drawterm support
  2018-01-20 16:10 DragonFly drawterm support Dave MacFarlane
@ 2018-01-20 21:32 ` hiro
  0 siblings, 0 replies; 2+ messages in thread
From: hiro @ 2018-01-20 21:32 UTC (permalink / raw)
  To: 9front

applied, thanks


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-20 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-20 16:10 DragonFly drawterm support Dave MacFarlane
2018-01-20 21:32 ` [9front] " hiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).