Commit ff218c25 by dlezcano

Add signalfd function definition

From: Dietmar Maurer <dietmar@proxmox.com> The signalfd function prototype and the signalfd header file is not defined in the debian Lenny. We want to use this debian version with a newer kernel. This patch gives the signalfd function prototype, because the function is available in the glibc-2.7 which is the version coming with debian Lenny. Signed-off-by: 's avatarDietmar Maurer <dietmar@proxmox.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent dc21287c
......@@ -27,6 +27,8 @@ AC_CHECK_HEADERS([linux/netlink.h linux/genetlink.h], [], AC_MSG_ERROR([netlink
AC_CHECK_HEADERS([sys/capability.h], [], AC_MSG_ERROR([please install libcap-devel.]),
[#include <sys/capability.h>])
AC_CHECK_HEADERS([sys/signalfd.h])
AC_PROG_GCC_TRADITIONAL
if test "x$GCC" = "xyes"; then
......
......@@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#define _GNU_SOURCE
#include "../config.h"
#include <stdio.h>
#undef _GNU_SOURCE
#include <string.h>
......@@ -41,7 +41,12 @@
#include <sys/wait.h>
#include <sys/un.h>
#include <sys/poll.h>
#ifdef HAVE_SYS_SIGNALFD_H
#include <sys/signalfd.h>
#else
extern int signalfd (int fd, const sigset_t *mask, int flags);
#endif
#include "error.h"
#include "af_unix.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment