Implement ShmGetImage
Also SHM extension is now only compiled if the system has shmat and shmdt
This commit is contained in:
@@ -4,11 +4,18 @@ set(SOURCES
|
||||
Extensions.cpp
|
||||
ExtBigReg.cpp
|
||||
ExtRANDR.cpp
|
||||
ExtSHM.cpp
|
||||
Image.cpp
|
||||
Keymap.cpp
|
||||
)
|
||||
|
||||
include(CheckSymbolExists)
|
||||
|
||||
check_symbol_exists(shmat "sys/shm.h" HAVE_SHMAT)
|
||||
check_symbol_exists(shmdt "sys/shm.h" HAVE_SHMDT)
|
||||
if(HAVE_SHMAT AND HAVE_SHMDT)
|
||||
set(SOURCES ${SOURCES} ExtSHM.cpp)
|
||||
endif()
|
||||
|
||||
add_executable(xbanan ${SOURCES})
|
||||
banan_link_library(xbanan ban)
|
||||
banan_link_library(xbanan libgui)
|
||||
|
||||
Reference in New Issue
Block a user