Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > 119c903b2f88e70bcc09ae31c5338746 > files > 3

ecflow-5.6.0-4.mga8.src.rpm

Description: Add FreeBSD to ifdef check for setsid. Fixes FTBFS on Debian kFreeBSD
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2018-11-20
Forwarded: no

Index: ecflow-4.11.1/tools/ecflow_standalone.c
===================================================================
--- ecflow-4.11.1.orig/tools/ecflow_standalone.c
+++ ecflow-4.11.1/tools/ecflow_standalone.c
@@ -182,7 +182,7 @@ int main(argc,argv) int argc; char **arg
      for (n=3; n<65535 ;n++) fclose(n); */
 
   /* create a new session from the child process */
-#if defined(linux) || defined(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || defined(SVR4) || defined(AIX) || defined(SYG) || defined(alpha)
+#if defined(linux) || defined(__APPLE__) || defined(__MACH__) || defined(hpux) || defined(solaris) || defined(SGI) || defined(SVR4) || defined(AIX) || defined(SYG) || defined(alpha) || defined(__FreeBSD__) 
   if( setsid() == -1 )
 #else
   if( setsid(0) == -1 )