X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Ftape.c;h=aa0ecc457dd56df66dd2518e0f97651012af7aa7;hp=edcf5d691925a6532dd71e8b30f75514d8190109;hb=13dd8b0533159735a7179eaafc894a8422b13184;hpb=e17af4c1a919e1d1456d6079682b63c7df947a7f diff --git a/dump/tape.c b/dump/tape.c index edcf5d6..aa0ecc4 100644 --- a/dump/tape.c +++ b/dump/tape.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: tape.c,v 1.91 2009/06/18 09:50:54 stelian Exp $"; + "$Id: tape.c,v 1.92 2011/05/20 09:48:40 stelian Exp $"; #endif /* not lint */ #include @@ -211,8 +211,13 @@ static int gtperr = 0; * Neither is useful in our case, so this is easy to handle. */ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,49) +#if __s390__ +/* child_stack, clone_flags, parent_tidptr, child_tidptr */ +#define CLONE_ARGS 0, SIGCHLD|CLONE_IO, NULL, NULL +#else /* clone_flags, child_stack, parent_tidptr, child_tidptr */ #define CLONE_ARGS SIGCHLD|CLONE_IO, 0, NULL, NULL +#endif /* __s390__ */ #else #define CLONE_ARGS SIGCHLD|CLONE_IO, 0 #endif /* LINUX_VERSION_CODE */