mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-30 13:25:54 +08:00
3b7d3190a1
uClibc master branch, as well as uclibc-ng add eventfd_{read,write} definitions. Instead of testing for __UCLIBC__, have cmake explicitly check for the existence of eventfd_read and save the result in WITH_EVENTFD_READ_WRITE. Fixes build errors like: .../winpr/libwinpr/synch/event.c:120:12: error: static declaration of 'eventfd_read' follows non-static declaration static int eventfd_read(int fd, eventfd_t* value) ^ In file included from .../winpr/libwinpr/synch/event.c:39:0: .../usr/include/sys/eventfd.h:37:12: note: previous declaration of 'eventfd_read' was here extern int eventfd_read (int __fd, eventfd_t *__value); ^ .../winpr/libwinpr/synch/event.c:125:12: error: static declaration of 'eventfd_write' follows non-static declaration static int eventfd_write(int fd, eventfd_t value) ^ In file included from .../winpr/libwinpr/synch/event.c:39:0: .../usr/include/sys/eventfd.h:40:12: note: previous declaration of 'eventfd_write' was here extern int eventfd_write (int __fd, eventfd_t __value);
101 lines
2.6 KiB
C
101 lines
2.6 KiB
C
#ifndef __CONFIG_H
|
|
#define __CONFIG_H
|
|
|
|
#define FREERDP_DATA_PATH "${FREERDP_DATA_PATH}"
|
|
#define FREERDP_KEYMAP_PATH "${FREERDP_KEYMAP_PATH}"
|
|
#define FREERDP_PLUGIN_PATH "${FREERDP_PLUGIN_PATH}"
|
|
|
|
#define FREERDP_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}"
|
|
|
|
#define FREERDP_LIBRARY_PATH "${FREERDP_LIBRARY_PATH}"
|
|
|
|
#define FREERDP_ADDIN_PATH "${FREERDP_ADDIN_PATH}"
|
|
|
|
#define CMAKE_SHARED_LIBRARY_SUFFIX "${CMAKE_SHARED_LIBRARY_SUFFIX}"
|
|
#define CMAKE_SHARED_LIBRARY_PREFIX "${CMAKE_SHARED_LIBRARY_PREFIX}"
|
|
|
|
/* Include files */
|
|
#cmakedefine HAVE_FCNTL_H
|
|
#cmakedefine HAVE_UNISTD_H
|
|
#cmakedefine HAVE_STDINT_H
|
|
#cmakedefine HAVE_INTTYPES_H
|
|
#cmakedefine HAVE_SYS_MODEM_H
|
|
#cmakedefine HAVE_SYS_FILIO_H
|
|
#cmakedefine HAVE_SYS_SELECT_H
|
|
#cmakedefine HAVE_SYS_STRTIO_H
|
|
#cmakedefine HAVE_EVENTFD_H
|
|
#cmakedefine HAVE_TIMERFD_H
|
|
#cmakedefine HAVE_TM_GMTOFF
|
|
#cmakedefine HAVE_AIO_H
|
|
#cmakedefine HAVE_POLL_H
|
|
#cmakedefine HAVE_PTHREAD_MUTEX_TIMEDLOCK
|
|
#cmakedefine HAVE_VALGRIND_MEMCHECK_H
|
|
#cmakedefine HAVE_EXECINFO_H
|
|
|
|
/* Features */
|
|
#cmakedefine HAVE_ALIGNED_REQUIRED
|
|
|
|
/* Options */
|
|
#cmakedefine WITH_PROFILER
|
|
#cmakedefine WITH_GPROF
|
|
#cmakedefine WITH_SSE2
|
|
#cmakedefine WITH_NEON
|
|
#cmakedefine WITH_IPP
|
|
#cmakedefine WITH_NATIVE_SSPI
|
|
#cmakedefine WITH_JPEG
|
|
#cmakedefine WITH_WIN8
|
|
#cmakedefine WITH_RDPSND_DSOUND
|
|
#cmakedefine WITH_EVENTFD_READ_WRITE
|
|
|
|
#cmakedefine WITH_FFMPEG
|
|
#cmakedefine WITH_GSTREAMER_1_0
|
|
#cmakedefine WITH_GSTREAMER_0_10
|
|
#cmakedefine WITH_WINMM
|
|
#cmakedefine WITH_MACAUDIO
|
|
#cmakedefine WITH_OSS
|
|
#cmakedefine WITH_ALSA
|
|
#cmakedefine WITH_PULSE
|
|
#cmakedefine WITH_IOSAUDIO
|
|
#cmakedefine WITH_OPENSLES
|
|
#cmakedefine WITH_GSM
|
|
|
|
/* Plugins */
|
|
#cmakedefine STATIC_CHANNELS
|
|
#cmakedefine WITH_RDPDR
|
|
|
|
|
|
/* Debug */
|
|
#cmakedefine WITH_DEBUG_CERTIFICATE
|
|
#cmakedefine WITH_DEBUG_CAPABILITIES
|
|
#cmakedefine WITH_DEBUG_CHANNELS
|
|
#cmakedefine WITH_DEBUG_CLIPRDR
|
|
#cmakedefine WITH_DEBUG_DVC
|
|
#cmakedefine WITH_DEBUG_TSMF
|
|
#cmakedefine WITH_DEBUG_GDI
|
|
#cmakedefine WITH_DEBUG_KBD
|
|
#cmakedefine WITH_DEBUG_LICENSE
|
|
#cmakedefine WITH_DEBUG_NEGO
|
|
#cmakedefine WITH_DEBUG_NLA
|
|
#cmakedefine WITH_DEBUG_NTLM
|
|
#cmakedefine WITH_DEBUG_TSG
|
|
#cmakedefine WITH_DEBUG_ORDERS
|
|
#cmakedefine WITH_DEBUG_RAIL
|
|
#cmakedefine WITH_DEBUG_RDP
|
|
#cmakedefine WITH_DEBUG_REDIR
|
|
#cmakedefine WITH_DEBUG_RFX
|
|
#cmakedefine WITH_DEBUG_SCARD
|
|
#cmakedefine WITH_DEBUG_SND
|
|
#cmakedefine WITH_DEBUG_SVC
|
|
#cmakedefine WITH_DEBUG_RDPEI
|
|
#cmakedefine WITH_DEBUG_TIMEZONE
|
|
#cmakedefine WITH_DEBUG_THREADS
|
|
#cmakedefine WITH_DEBUG_TRANSPORT
|
|
#cmakedefine WITH_DEBUG_WND
|
|
#cmakedefine WITH_DEBUG_X11
|
|
#cmakedefine WITH_DEBUG_X11_CLIPRDR
|
|
#cmakedefine WITH_DEBUG_X11_LOCAL_MOVESIZE
|
|
#cmakedefine WITH_DEBUG_XV
|
|
#cmakedefine WITH_DEBUG_ANDROID_JNI
|
|
#cmakedefine WITH_DEBUG_RINGBUFFER
|
|
#endif
|