summary refs log tree commit diff
diff options
context:
space:
mode:
authorAbdelhakim Qbaich <abdelhakim@qbaich.com>2021-08-31 22:16:27 -0700
committerAbdelhakim Qbaich <abdelhakim@qbaich.com>2021-08-31 22:16:27 -0700
commitea93044e9e37029dfee2f7dd822227a396bbccb2 (patch)
treebd9d8ce71c543bfe3ecfff4e72eb8ecab69006b3
parent605ccef432f58f2c85b8ec3ac38ddc7349fbef20 (diff)
downloadnixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.tar
nixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.tar.gz
nixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.tar.bz2
nixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.tar.lz
nixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.tar.xz
nixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.tar.zst
nixpkgs-ea93044e9e37029dfee2f7dd822227a396bbccb2.zip
kmod: fixing darwin.patch
-rw-r--r--pkgs/os-specific/linux/kmod/darwin.patch15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/kmod/darwin.patch b/pkgs/os-specific/linux/kmod/darwin.patch
index e112e691525..4d9931b03ee 100644
--- a/pkgs/os-specific/linux/kmod/darwin.patch
+++ b/pkgs/os-specific/linux/kmod/darwin.patch
@@ -69,14 +69,17 @@ diff --git a/shared/macro.h b/shared/macro.h
 index 4fc5405..b5a2702 100644
 --- a/shared/macro.h
 +++ b/shared/macro.h
-@@ -71,3 +71,7 @@
- #endif
- 
- #define UNIQ __COUNTER__
-+
-+ #if !defined(__linux__)
+@@ -53,6 +53,10 @@
+ #define CONCATENATE(x, y) XCONCATENATE(x, y)
+ #define UNIQ(x) CONCATENATE(x, __COUNTER__)
+
++#if !defined(__linux__)
 +#define program_invocation_short_name getprogname()
 +#endif
++
+ /* Temporaries for importing index handling */
+ #define NOFAIL(x) (x)
+ #define fatal(x...) do { } while (0)
 diff --git a/shared/missing.h b/shared/missing.h
 index 4c0d136..ad8ec0f 100644
 --- a/shared/missing.h