Sun Dec 16 07:02:08 2018 UTC ()
#include <sys/types.h> for pid_t. Fixes FreeBSD build.


(schmonz)
diff -r1.3 -r1.4 pkgsrc/devel/cpputest/distinfo
diff -r1.1 -r1.2 pkgsrc/devel/cpputest/patches/patch-include_CppUTest_PlatformSpecificFunctions.h

cvs diff -r1.3 -r1.4 pkgsrc/devel/cpputest/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/cpputest/distinfo 2018/06/22 15:56:56 1.3
+++ pkgsrc/devel/cpputest/distinfo 2018/12/16 07:02:07 1.4
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.3 2018/06/22 15:56:56 schmonz Exp $ 1$NetBSD: distinfo,v 1.4 2018/12/16 07:02:07 schmonz Exp $
2 2
3SHA1 (cpputest-3.8.tar.gz) = c68f8b59d0beb6d4e6953173ec3611f801cdb3a1 3SHA1 (cpputest-3.8.tar.gz) = c68f8b59d0beb6d4e6953173ec3611f801cdb3a1
4RMD160 (cpputest-3.8.tar.gz) = c1a4fad966bd8c557fbe62dde0d418b7d1b529ec 4RMD160 (cpputest-3.8.tar.gz) = c1a4fad966bd8c557fbe62dde0d418b7d1b529ec
5SHA512 (cpputest-3.8.tar.gz) = 42b9a98549e1296ab9dfcd40bb94e1ac634fc1e70ad6250654ca0fa254c63e0349ae9ccd0b9d72c4bde1f7baccde97e08ce3e6d1fff3e464c3d9e8ae5949185f 5SHA512 (cpputest-3.8.tar.gz) = 42b9a98549e1296ab9dfcd40bb94e1ac634fc1e70ad6250654ca0fa254c63e0349ae9ccd0b9d72c4bde1f7baccde97e08ce3e6d1fff3e464c3d9e8ae5949185f
6Size (cpputest-3.8.tar.gz) = 2333302 bytes 6Size (cpputest-3.8.tar.gz) = 2333302 bytes
7SHA1 (patch-include_CppUTest_PlatformSpecificFunctions.h) = afb43662631efd428486b8759c098d9f81bb8470 7SHA1 (patch-include_CppUTest_PlatformSpecificFunctions.h) = 03a11329605ae496f1eb41c958d9679da9e0133a
8SHA1 (patch-src_Platforms_Gcc_UtestPlatform.cpp) = 436725ac8e2d6b71d2488cd1076d55082104c3bb 8SHA1 (patch-src_Platforms_Gcc_UtestPlatform.cpp) = 436725ac8e2d6b71d2488cd1076d55082104c3bb

cvs diff -r1.1 -r1.2 pkgsrc/devel/cpputest/patches/patch-include_CppUTest_PlatformSpecificFunctions.h (expand / switch to unified diff)

--- pkgsrc/devel/cpputest/patches/patch-include_CppUTest_PlatformSpecificFunctions.h 2018/06/22 15:56:56 1.1
+++ pkgsrc/devel/cpputest/patches/patch-include_CppUTest_PlatformSpecificFunctions.h 2018/12/16 07:02:08 1.2
@@ -1,17 +1,26 @@ @@ -1,17 +1,26 @@
1$NetBSD: patch-include_CppUTest_PlatformSpecificFunctions.h,v 1.1 2018/06/22 15:56:56 schmonz Exp $ 1$NetBSD: patch-include_CppUTest_PlatformSpecificFunctions.h,v 1.2 2018/12/16 07:02:08 schmonz Exp $
2 2
3Expect pid_t from fork() and waitpid(). 3Expect pid_t from fork() and waitpid().
4 4
5--- include/CppUTest/PlatformSpecificFunctions.h.orig 2016-05-25 05:41:47.000000000 +0000 5--- include/CppUTest/PlatformSpecificFunctions.h.orig 2016-05-25 05:41:47.000000000 +0000
6+++ include/CppUTest/PlatformSpecificFunctions.h 6+++ include/CppUTest/PlatformSpecificFunctions.h
7@@ -33,8 +33,8 @@ TestOutput::WorkingEnvironment PlatformS 7@@ -28,13 +28,17 @@
 8 #ifndef PLATFORMSPECIFICFUNCTIONS_H_
 9 #define PLATFORMSPECIFICFUNCTIONS_H_
 10
 11+#ifdef CPPUTEST_HAVE_SYS_TYPES_H
 12+#include <sys/types.h>
 13+#endif
 14+
 15 #include "CppUTest/TestOutput.h"
 16 TestOutput::WorkingEnvironment PlatformSpecificGetWorkingEnvironment();
8  17
9 class TestPlugin; 18 class TestPlugin;
10 extern void (*PlatformSpecificRunTestInASeperateProcess)(UtestShell* shell, TestPlugin* plugin, TestResult* result); 19 extern void (*PlatformSpecificRunTestInASeperateProcess)(UtestShell* shell, TestPlugin* plugin, TestResult* result);
11-extern int (*PlatformSpecificFork)(void); 20-extern int (*PlatformSpecificFork)(void);
12-extern int (*PlatformSpecificWaitPid)(int pid, int* status, int options); 21-extern int (*PlatformSpecificWaitPid)(int pid, int* status, int options);
13+extern pid_t (*PlatformSpecificFork)(void); 22+extern pid_t (*PlatformSpecificFork)(void);
14+extern pid_t (*PlatformSpecificWaitPid)(int pid, int* status, int options); 23+extern pid_t (*PlatformSpecificWaitPid)(int pid, int* status, int options);
15  24
16 /* Platform specific interface we use in order to minimize dependencies with LibC. 25 /* Platform specific interface we use in order to minimize dependencies with LibC.
17 * This enables porting to different embedded platforms. 26 * This enables porting to different embedded platforms.