Skip to content

Commit 377c477

Browse files
authored
Merge pull request ozkl#2 from Redfoxymoon/master
Portability fixes for building against musl libc distros
2 parents 58fa1d7 + d56ba1f commit 377c477

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

doomgeneric/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ endif
1515
CC=gcc # gcc or g++
1616
CFLAGS+=-ggdb3 -Os
1717
LDFLAGS+=-Wl,--gc-sections
18-
CFLAGS+=-ggdb3 -Wall -DNORMALUNIX -DLINUX -DSNDSERV # -DUSEASM
18+
CFLAGS+=-ggdb3 -Wall -DNORMALUNIX -DLINUX -DSNDSERV -D_DEFAULT_SOURCE # -DUSEASM
1919
LIBS+=-lm -lc -lX11
2020

2121
# subdirectory for objects

doomgeneric/doomgeneric.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef DOOM_GENERIC
22
#define DOOM_GENERIC
33

4+
#include <stdlib.h>
45
#include <stdint.h>
56

67
#define DOOMGENERIC_RESX 640

doomgeneric/doomgeneric_xlib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include "doomgeneric.h"
44

5+
#include <ctype.h>
56
#include <stdio.h>
67
#include <string.h>
78
#include <unistd.h>

0 commit comments

Comments
 (0)