Fix eventfd2_03 build failure on powerpc architecture. I've found a failure when building ltp-full-20090630 on powerpc:
eventfd2_03.c:48:2: error: #error Cannot detect your architecture!
eventfd2_03.c: In function ‘eventfd2’:
eventfd2_03.c:54: error: ‘__NR_eventfd2’ undeclared (first use in this function)
eventfd2_03.c:54: error: (Each undeclared identifier is reported only once
eventfd2_03.c:54: error: for each function it appears in.)
eventfd2_03.c: In function ‘main’:
eventfd2_03.c:129: warning: implicit declaration of function ‘waitpid’
This patch fixes the failure, the test program identifier and adds a kernel version check. Signed-off-by Lucio Correia <ljhc@br.ibm.com>.
3 files changed