]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
compat: Fix sha256 on Dragonfly at least
authorRoy Marples <roy@marples.name>
Mon, 10 Nov 2025 22:02:49 +0000 (22:02 +0000)
committerRoy Marples <roy@marples.name>
Mon, 10 Nov 2025 22:02:49 +0000 (22:02 +0000)
compat/crypt/sha256.c

index 73c43c037fa2c93ebf49218a9b4b23c22194b127..ccc00a4b06de2ba6925804afdd74e495630707a1 100644 (file)
  * SUCH DAMAGE.
  */
 
-#include <inttypes.h>
+/* For BSD */
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
 
+#include <inttypes.h>
 #include <string.h>
 
 #ifdef __GLIBC__