Skip to content

Commit

Permalink
Support for the FreeMiNT platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikrosk committed Jan 20, 2017
1 parent 454cb6b commit afeba24
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
24 changes: 24 additions & 0 deletions config.mak.uname
Original file line number Diff line number Diff line change
Expand Up @@ -594,3 +594,27 @@ ifeq ($(uname_S),QNX)
NO_STRCASESTR = YesPlease
NO_STRLCPY = YesPlease
endif
ifeq ($(uname_S),FreeMiNT)
CC = m68k-atari-mint-gcc
AR = m68k-atari-mint-ar
CFLAGS = -O2 -fomit-frame-pointer -Wall
# _BSD_SOURCE is needed for compat/stat.c compilation
COMPAT_CFLAGS += -DSA_RESTART=0 -D_BSD_SOURCE=1
NO_MMAP = YesPlease
NO_ICONV = YesPlease
NO_GETTEXT = YesPlease
NO_REGEX = YesPlease
NO_IPV6 = YesPlease
NEEDS_MODE_TRANSLATION = YesPlease
NO_PTHREADS = YesPlease
NO_MEMMEM = YesPlease
NEEDS_SSL_WITH_CURL = YesPlease
NO_MKDTEMP = YesPlease
NO_MKSTEMPS=YesPlease
NO_PERL_MAKEMAKER = YesPlease
NO_D_TYPE_IN_DIRENT = YesPlease
NO_LIBGEN_H = YesPlease
HAVE_PATHS_H = YesPlease
HAVE_STRINGS_H = YesPlease
HAVE_GETDELIM = YesPlease
endif
19 changes: 19 additions & 0 deletions git-compat-util.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,25 @@ extern int git_munmap(void *start, size_t length);
#define S_IFCHR 0020000
#define S_IFIFO 0010000
#define S_IFSOCK 0140000

#undef S_ISTYPE
#define S_ISTYPE(mode, mask) (((mode) & __S_IFMT) == (mask))

#undef S_ISDIR
#undef S_ISCHR
#undef S_ISBLK
#undef S_ISREG
#undef S_ISFIFO
#undef S_ISLNK
#undef S_ISSOCK
#define S_ISDIR(mode) S_ISTYPE((mode), S_IFDIR)
#define S_ISCHR(mode) S_ISTYPE((mode), S_IFCHR)
#define S_ISBLK(mode) S_ISTYPE((mode), S_IFBLK)
#define S_ISREG(mode) S_ISTYPE((mode), S_IFREG)
#define S_ISFIFO(mode) S_ISTYPE((mode), S_IFIFO)
#define S_ISLNK(mode) S_ISTYPE((mode), S_IFLNK)
#define S_ISSOCK(mode) S_ISTYPE((mode), S_IFSOCK)

#ifdef stat
#undef stat
#endif
Expand Down

0 comments on commit afeba24

Please sign in to comment.