]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: enable build on Linux/s390x
authorNeale Ferguson <neale@sinenomine.net>
Mon, 12 Oct 2015 18:58:51 +0000 (20:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Oct 2015 18:58:51 +0000 (20:58 +0200)
I would like to contribute the following fix to enable the Linux s390x
platform. The fix was built against today's git master. I've attached the
patch for review. Depending on your buildbot/jenkins/? requirements I can
set up a virtual machine for automated building/testing of the package in
this environment.

include/common/syscall.h

index 7c9a4560d96b68435020b5d2def13dde7989b72a..9554d5ad8c130e0317f652230438334764de8b2b 100644 (file)
 #define __NR_epoll_create 254
 #define __NR_epoll_ctl    255
 #define __NR_epoll_wait   256
+#elif defined (__s390__) || defined(__s390x__)
+#define __NR_epoll_create 249
+#define __NR_epoll_ctl    250
+#define __NR_epoll_wait   251
 #endif /* $arch */
 #endif /* __NR_epoll_ctl */
 
 #define __NR_splice             468
 #elif defined (__i386__)
 #define __NR_splice             313
+#elif defined(__s390__) || defined(__s390x__)
+#define __NR_splace            306
 #endif /* $arch */
 #endif /* __NR_splice */