libpipeline: fix build for osx (#15754)
This commit is contained in:
committed by
Franz Pletz
parent
9fff4b31fa
commit
84f31ded3f
@@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1vmrs4nvdsmb550bk10cankrd42ffczlibpsnafxpak306rdfins";
|
sha256 = "1vmrs4nvdsmb550bk10cankrd42ffczlibpsnafxpak306rdfins";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = stdenv.lib.optionals stdenv.isDarwin [ ./fix-on-osx.patch ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "http://libpipeline.nongnu.org";
|
homepage = "http://libpipeline.nongnu.org";
|
||||||
description = "C library for manipulating pipelines of subprocesses in a flexible and convenient way";
|
description = "C library for manipulating pipelines of subprocesses in a flexible and convenient way";
|
||||||
|
|||||||
@@ -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)
|
||||||
|
{
|
||||||
Reference in New Issue
Block a user