Unverified Commit 6748e1e8 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by GitHub
Browse files

opencbm: fix build (#489055)

parents e59f2c1d 43a928c5
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
diff --git a/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h b/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h
index 3dbe5a53..c77bc686 100644
--- a/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h
+++ b/xum1541cfg/dfu-programmer-0.5.4/src/dfu-bool.h
@@ -1,9 +1,6 @@
 #ifndef __DFU_BOOL_H__
 #define __DFU_BOOL_H__
 
-typedef enum {
-    false = 0,
-    true  = 1
-} dfu_bool;
-
+#include <stdbool.h>
+#define dfu_bool bool
 #endif
+6 −2
Original line number Diff line number Diff line
@@ -15,10 +15,14 @@ stdenv.mkDerivation (finalAttrs: {
  src = fetchFromGitHub {
    owner = "OpenCBM";
    repo = "OpenCBM";
    rev = "v${finalAttrs.version}";
    sha256 = "sha256-5lj5F79Gbhrvi9dxKGobdyDyBLGcptAtxx9SANhLrKw=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-5lj5F79Gbhrvi9dxKGobdyDyBLGcptAtxx9SANhLrKw=";
  };

  patches = [
    ./fix-dfu_bool.patch
  ];

  makefile = "LINUX/Makefile";
  makeFlags = [
    "PREFIX=${placeholder "out"}"