summary refs log tree commit diff
path: root/pkgs/tools/filesystems/udftools
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-03-28 15:16:29 +0000
committerRobin Gloster <mail@glob.in>2016-03-28 15:16:29 +0000
commitf60c9df0ba66767dfa64bf2fb95eb6776cafa2c3 (patch)
tree0f17999d3a5444f16f09e0c1d7f3075e0224e731 /pkgs/tools/filesystems/udftools
parent3f45f0948d6fe158bed063adb66850ded0ba4861 (diff)
parentc61445357e2a92470bee43a71a10baef1a3196e4 (diff)
downloadnixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.gz
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.bz2
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.lz
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.xz
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.zst
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.zip
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/filesystems/udftools')
-rw-r--r--pkgs/tools/filesystems/udftools/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/udftools/default.nix b/pkgs/tools/filesystems/udftools/default.nix
index 5613bac9b1a..75e37f77949 100644
--- a/pkgs/tools/filesystems/udftools/default.nix
+++ b/pkgs/tools/filesystems/udftools/default.nix
@@ -14,9 +14,15 @@ stdenv.mkDerivation rec {
 
   hardeningDisable = [ "fortify" ];
 
+  NIX_CFLAGS_COMPILE = "-std=gnu90";
+
   preConfigure = ''
     sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c
     sed -e 's@[(]char[*][)]spm [+]=@spm = ((char*) spm) + @' -i wrudf/wrudf.c
+    sed -e '27i#include <string.h>' -i include/udf_endian.h
+    sed -e '38i#include <string.h>' -i wrudf/wrudf-cdrw.c
+    sed -e '12i#include <string.h>' -i wrudf/wrudf-cdr.c
+    sed -e '37i#include <stdlib.h>' -i wrudf/ide-pc.c
   '';
 
   meta = with stdenv.lib; {