make openbsd compile with NO_UI=1
parent
0d5bfa9fd2
commit
bdda6fc3cb
|
@ -1,4 +1,5 @@
|
||||||
include vm/Config.unix
|
include vm/Config.unix
|
||||||
PLAF_DLL_OBJS += vm/os-genunix.o vm/os-openbsd.o
|
PLAF_DLL_OBJS += vm/os-genunix.o vm/os-openbsd.o
|
||||||
|
CC = egcc
|
||||||
CFLAGS += -export-dynamic
|
CFLAGS += -export-dynamic
|
||||||
LIBS = -L/usr/local/lib/ -lm $(X11_UI_LIBS)
|
LIBS = -L/usr/local/lib/ -lm $(X11_UI_LIBS)
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
|
#include <i386/signal.h>
|
||||||
|
|
||||||
INLINE void *openbsd_stack_pointer(void *uap)
|
INLINE void *openbsd_stack_pointer(void *uap)
|
||||||
{
|
{
|
||||||
ucontext_t *ucontext = (ucontext_t *)uap;
|
struct sigcontext *sc = (struct sigcontext*) uap;
|
||||||
return (void *)ucontext->sc_esp;
|
return (void *)sc->sc_esp;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define ucontext_stack_pointer openbsd_stack_pointer
|
#define ucontext_stack_pointer openbsd_stack_pointer
|
||||||
|
#define UAP_PROGRAM_COUNTER(uap) (((struct sigcontext*)(uap))->sc_eip)
|
||||||
|
|
|
@ -1,2 +1,6 @@
|
||||||
#define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN)
|
#define UNKNOWN_TYPE_P(file) ((file)->d_type == DT_UNKNOWN)
|
||||||
#define DIRECTORY_P(file) ((file)->d_type == DT_DIR)
|
#define DIRECTORY_P(file) ((file)->d_type == DT_DIR)
|
||||||
|
|
||||||
|
#ifndef environ
|
||||||
|
extern char **environ;
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue