Skip to content

Commit

Permalink
dgsh: fix build with glibc 2.26
Browse files Browse the repository at this point in the history
  • Loading branch information
orivej committed Nov 28, 2017
1 parent f8077b7 commit ff7be8f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/shells/dgsh/default.nix
Expand Up @@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
fetchSubmodules = true;
};

patches = [ ./glibc-2.26.patch ];

nativeBuildInputs = [ autoconf automake pkgconfig libtool check
bison git gettext gperf perl texinfo help2man ncurses
];
Expand All @@ -31,6 +33,8 @@ stdenv.mkDerivation rec {
make PREFIX=$out config
'';

enableParallelBuilding = true;

meta = with stdenv.lib; {
description = "The Directed Graph Shell";
homepage = http://www.dmst.aueb.gr/dds/sw/dgsh;
Expand Down
12 changes: 12 additions & 0 deletions pkgs/shells/dgsh/glibc-2.26.patch
@@ -0,0 +1,12 @@
diff --git a/core-tools/src/dgsh-httpval.c b/core-tools/src/dgsh-httpval.c
index 8b5dce3..7b43c3d 100644
--- a/core-tools/src/dgsh-httpval.c
+++ b/core-tools/src/dgsh-httpval.c
@@ -40,6 +40,7 @@
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
+#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>

0 comments on commit ff7be8f

Please sign in to comment.