libpipeline: fix build for osx (#15754)

This commit is contained in:
Tobias Pflug 2016-05-27 18:40:46 +02:00 committed by Franz Pletz
parent 9fff4b31fa
commit 84f31ded3f
2 changed files with 15 additions and 0 deletions

View File

@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
sha256 = "1vmrs4nvdsmb550bk10cankrd42ffczlibpsnafxpak306rdfins";
};
patches = stdenv.lib.optionals stdenv.isDarwin [ ./fix-on-osx.patch ];
meta = with stdenv.lib; {
homepage = "http://libpipeline.nongnu.org";
description = "C library for manipulating pipelines of subprocesses in a flexible and convenient way";

View File

@ -0,0 +1,13 @@
diff --git a/lib/pipeline.c b/lib/pipeline.c
index 26478f9..1612307 100644
--- a/lib/pipeline.c
+++ b/lib/pipeline.c
@@ -75,6 +75,8 @@
# endif
#endif
+const char* program_name = "libpipeline";
+
#if defined(HAVE_SETENV) && !defined(HAVE_CLEARENV)
int clearenv (void)
{