Skip to content

Commit

Permalink
compile fix for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
dallmann committed Jan 15, 2009
1 parent 58b3f2e commit 070f365
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions devel_utils/apple/diskimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@
#include <stdlib.h>
#include <sys/types.h> /*for u_int8_t*/
#include <unistd.h>

#if __APPLE__
#include <unistd.h>
#else
#include <getopt.h>
#endif

int verbose = 0;
int phys2log[] = {0x00, 0x0D, 0x0B, 0x09, 0x07, 0x05, 0x03, 0x01,
Expand Down
7 changes: 7 additions & 0 deletions devel_utils/atari/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.PHONY : all clean

HOSTCPU:=$(shell uname -p)

CC=gcc
COMPFLAGS=-O6 -ansi -Wall -W -Wstrict-prototypes -Wshadow -Wmissing-declarations -Wmissing-prototypes -fomit-frame-pointer

Expand All @@ -9,6 +11,11 @@ OLDAPPS=binload-2.5 atr2unix-1.2 unix2atr-0.9

all : $(APPS)

ifeq "$(HOSTCPU)" "powerpc"
femul-1.4 :
@echo "*** ERROR *** femul is not compilable for PowerPC - sorry"
endif

clean :
-rm $(APPS)

Expand Down

0 comments on commit 070f365

Please sign in to comment.