diff --git a/makefile b/makefile index 4922ee45..436be01c 100644 --- a/makefile +++ b/makefile @@ -318,6 +318,9 @@ ifeq ($(WIN32),) #*nix Environments (&& cygwin) OS_CCDEFS += -DHAVE_LIBSDL -I$(dir $(call find_include,SDL/SDL)) OS_LDFLAGS += -lSDL $(info using libSDL: $(call find_lib,SDL) $(call find_include,SDL/SDL)) + ifeq (Darwin,$(OSTYPE)) + OS_LDFLAGS += -lSDLmain -lobjc -framework cocoa + endif endif endif ifneq (,$(VIDEO_USEFUL)) diff --git a/scp.c b/scp.c index ca6bab24..fd687e98 100644 --- a/scp.c +++ b/scp.c @@ -233,7 +233,10 @@ #endif #include -#if defined(HAVE_DLOPEN) /* Dynamic Readline support */ +#if defined(HAVE_LIBSDL) && defined(USE_SIM_VIDEO) /* SDL*/ +#include +#endif +#if defined(HAVE_DLOPEN) /* Dynamic Readline support */ #include #endif