Skip to content

Commit

Permalink
Initial AIX support
Browse files Browse the repository at this point in the history
  • Loading branch information
bhuntsman committed Jul 31, 2021
1 parent fa5671b commit f50e774
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ Erik Quanstrom <[email protected]>
David du Colombier <[email protected]>
Russ Cox <[email protected]>
Yaroslav <[email protected]>
Ben Huntsman <[email protected]>
19 changes: 19 additions & 0 deletions Make.aix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# AIX
PTHREAD=-DPTHREAD
AR=ar
RANLIB=ranlib
X11=/usr/X11R6
CC=xlc_r
CFLAGS=-I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2 -DAIX -qmaxmem=-1 -qsuppress=1506-236 -qsuppress=1506-358 -qsuppress=1500-010 -g -qfullpath
O=o
OS=posix
GUI=x11
LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11
LDFLAGS=$(PTHREAD)
TARG=drawterm
AUDIO=none

all: default

libmachdep.a:
(cd posix-port && make)
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ To build on Unix, run CONF=unix make.

To build on Solaris using Sun cc, run CONF=sun make.

To build on AIX using IBM XL C, run CONF=aix make.

To build on Windows, you need Mingw. See http://www.mingw.org.
Edit Make.config to uncomment the Windows section
and comment out the rest. Then run CONF=win32 make.
Expand Down
2 changes: 1 addition & 1 deletion include/dtos.h
Original file line number Diff line number Diff line change
@@ -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(AIX)
# include "unix.h"
# ifdef __APPLE__
# define panic dt_panic
Expand Down

0 comments on commit f50e774

Please sign in to comment.