summaryrefslogtreecommitdiff
path: root/emu
diff options
context:
space:
mode:
Diffstat (limited to 'emu')
-rw-r--r--emu/Linux/os.c1
-rw-r--r--emu/port/fns.h1
-rw-r--r--emu/port/kproc-pthreads.c1
3 files changed, 2 insertions, 1 deletions
diff --git a/emu/Linux/os.c b/emu/Linux/os.c
index 0d91518a..08b039d6 100644
--- a/emu/Linux/os.c
+++ b/emu/Linux/os.c
@@ -13,7 +13,6 @@
#include "dat.h"
#include "fns.h"
#include "error.h"
-#include <fpuctl.h>
#include <semaphore.h>
diff --git a/emu/port/fns.h b/emu/port/fns.h
index be825d17..db08957d 100644
--- a/emu/port/fns.h
+++ b/emu/port/fns.h
@@ -119,6 +119,7 @@ Pgrp* newpgrp(void);
Proc* newproc(void);
void nexterror(void);
void notkilled(void);
+int nrand(int);
int openmode(ulong);
void osblock(void);
void* oscmd(char**, int, char*, int*);
diff --git a/emu/port/kproc-pthreads.c b/emu/port/kproc-pthreads.c
index 32053794..5560f737 100644
--- a/emu/port/kproc-pthreads.c
+++ b/emu/port/kproc-pthreads.c
@@ -7,6 +7,7 @@
#include <unistd.h>
#include <signal.h>
+#define __USE_GNU
#include <pthread.h>
#include <limits.h>
#include <errno.h>