FreeRDP/winpr/libwinpr/synch
Baruch Siach 3b7d3190a1 Fix build with newer uclibc versions
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);
2015-04-29 20:31:25 +03:00
..
test winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
address.c libwinpr-synch: implemented Win32 Events 2012-09-18 18:36:13 -04:00
barrier.c server: fix build on Windows 2014-08-11 19:31:38 -04:00
CMakeLists.txt Necessary changes to get latest branch working on OpenBSD 5.6 2015-04-21 14:42:06 -04:00
condition.c libwinpr-synch: implemented Win32 Events 2012-09-18 18:36:13 -04:00
critical.c hardening 2015-03-25 17:38:21 +01:00
event.c Fix build with newer uclibc versions 2015-04-29 20:31:25 +03:00
init.c Reformatted changed files. 2014-09-09 16:32:22 +02:00
ModuleOptions.cmake libwinpr: add module definition files 2012-09-21 13:02:54 -04:00
mutex.c Removed INVALID_HANDLE_VALUE from types not using it. 2015-03-31 15:18:45 +02:00
semaphore.c winpr: add checks for *alloc 2015-04-08 11:34:37 +02:00
sleep.c Fixed various memory leaks and compiler warnings. 2013-09-05 12:14:33 +02:00
srw.c libwinpr-synch: implemented Win32 Events 2012-09-18 18:36:13 -04:00
synch.h libwinpr-synch: replace pthreads-based barrier implementation by interlocked operations + event and avoid deadlocks 2014-08-08 21:02:15 -04:00
timer.c Removed INVALID_HANDLE_VALUE. 2015-03-31 15:18:46 +02:00
wait.c Fixed pthread_mutex_timedjoin detection. 2015-04-22 09:32:59 +02:00