Commit aaff6cb1 authored by Profpatsch's avatar Profpatsch
Browse files

cdb: fix -Werror messages

Who enabled -Werror? I want to do bad things to them!!
parent bced68b6
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -36,6 +36,11 @@ stdenv.mkDerivation {
    "out"
  ];

  env.NIX_CFLAGS_COMPILE = toString [
      "-Wno-error=implicit-int"
      "-Wno-error=implicit-function-declaration"
  ];

  postPatch = ''
    # A little patch, borrowed from Archlinux AUR, borrowed from Gentoo Portage
    sed -e 's/^extern int errno;$/#include <errno.h>/' -i error.h