summary refs log tree commit diff
path: root/pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c
diff options
context:
space:
mode:
authorMatthew Justin Bauer <mjbauer95@gmail.com>2018-03-19 12:40:03 -0500
committerGitHub <noreply@github.com>2018-03-19 12:40:03 -0500
commitce01740daeaf1288cc973942d80ed8bf69e9d1d1 (patch)
tree09af5176df893616b2297a47899ee476a46114c4 /pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c
parentce456559d790b2d1c0e9145193caab550903c7da (diff)
parentebf1dade82911ad4e0d88cf09ad4feb5819549d5 (diff)
downloadnixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.tar
nixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.tar.gz
nixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.tar.bz2
nixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.tar.lz
nixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.tar.xz
nixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.tar.zst
nixpkgs-ce01740daeaf1288cc973942d80ed8bf69e9d1d1.zip
Merge pull request #33685 from corngood/amdgpu-pro-upgrade
amdgpu-pro: 17.10 -> 17.40
Diffstat (limited to 'pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c')
-rw-r--r--pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c b/pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c
new file mode 100644
index 00000000000..ab47bacb822
--- /dev/null
+++ b/pkgs/os-specific/linux/amdgpu-pro/xreallocarray.c
@@ -0,0 +1,5 @@
+#include <malloc.h>
+
+void *xreallocarray(void *ptr, size_t nmemb, size_t size) {
+  return reallocarray(ptr, nmemb, size);
+}