Module Name: src
Committed By: kre
Date: Mon Oct 28 13:06:34 UTC 2024
Modified Files:
src/usr.bin/elf2aout: elf2aout.c
Log Message:
Include <arpa/inet.h> for htonl() (From Jan-Benedict Glaw)
Probably this should be using htobe32() instead of htonl()
(and so <endian.h> rather than <arpa/inet.h>) as there is
no sign of any network anywhere near here. But that's for
another day, and to be done by someone who can test it.
XXX pullup -10
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/usr.bin/elf2aout/elf2aout.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/elf2aout/elf2aout.c
diff -u src/usr.bin/elf2aout/elf2aout.c:1.23 src/usr.bin/elf2aout/elf2aout.c:1.24
--- src/usr.bin/elf2aout/elf2aout.c:1.23 Sun May 19 09:14:13 2019
+++ src/usr.bin/elf2aout/elf2aout.c Mon Oct 28 13:06:34 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: elf2aout.c,v 1.23 2019/05/19 09:14:13 wiz Exp $ */
+/* $NetBSD: elf2aout.c,v 1.24 2024/10/28 13:06:34 kre Exp $ */
/*
* Copyright (c) 1995
@@ -56,6 +56,8 @@
#include <string.h>
#include <unistd.h>
+#include <arpa/inet.h>
+
struct sect {
/* should be unsigned long, but assume no a.out binaries on LP64 */