Merge pull request #2 from Redfoxymoon/master

Portability fixes for building against musl libc distros
This commit is contained in:
ozkl 2020-11-22 17:05:57 +03:00 committed by GitHub
commit 377c4777f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,7 @@ endif
CC=gcc # gcc or g++ CC=gcc # gcc or g++
CFLAGS+=-ggdb3 -Os CFLAGS+=-ggdb3 -Os
LDFLAGS+=-Wl,--gc-sections LDFLAGS+=-Wl,--gc-sections
CFLAGS+=-ggdb3 -Wall -DNORMALUNIX -DLINUX -DSNDSERV # -DUSEASM CFLAGS+=-ggdb3 -Wall -DNORMALUNIX -DLINUX -DSNDSERV -D_DEFAULT_SOURCE # -DUSEASM
LIBS+=-lm -lc -lX11 LIBS+=-lm -lc -lX11
# subdirectory for objects # subdirectory for objects

View File

@ -1,6 +1,7 @@
#ifndef DOOM_GENERIC #ifndef DOOM_GENERIC
#define DOOM_GENERIC #define DOOM_GENERIC
#include <stdlib.h>
#include <stdint.h> #include <stdint.h>
#define DOOMGENERIC_RESX 640 #define DOOMGENERIC_RESX 640

View File

@ -2,6 +2,7 @@
#include "doomgeneric.h" #include "doomgeneric.h"
#include <ctype.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>