nixpkgs/pkgs/by-name/hd/hddtemp/execinfo.patch
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

22 lines
751 B
Diff

--- hddtemp-0.3-beta15/configure.in~ 2005-10-17 19:14:19 +0000
+++ hddtemp-0.3-beta15/configure.in 2006-12-11 18:23:22 +0000
@@ -18,6 +18,7 @@
AC_HEADER_STDC
AC_CHECK_HEADERS(fcntl.h)
AC_CHECK_HEADERS(netinet/in.h)
+AC_CHECK_HEADERS(execinfo.h)
AC_CHECK_TYPE(in_addr_t, ,[AC_DEFINE_UNQUOTED([in_addr_t], [uint32_t], [Define to 'uint32_t' if <netinet/in.h> does not define.])], [#include <netinet/in.h>])
# Checks for typedefs, structures, and compiler characteristics.
--- hddtemp-0.3-beta15/src/backtrace.c-orig 2006-12-11 18:20:41 +0000
+++ hddtemp-0.3-beta15/src/backtrace.c 2006-12-11 18:23:28 +0000
@@ -18,7 +18,7 @@
#include <features.h>
-#if defined(__i386__) && defined(__GLIBC__)
+#ifdef HAS_EXECINFO_H
#include <execinfo.h>