Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial AIX support #13

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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