]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3599] Build fails on linux-m68k due to alignment issues
authorJuergen Perlinger <perlinger@ntp.org>
Sat, 10 Aug 2019 06:31:59 +0000 (08:31 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Sat, 10 Aug 2019 06:31:59 +0000 (08:31 +0200)
bk: 5d4e64dfQh7SXurWcB9bsclFuMIajA

ChangeLog
include/ntp_request.h
ntpdc/layout.std

index 9ff845c81028eeecbd72fd587d28555bc5f781e5..23b30b14fabec79fb296afd7b3ed8561507f81cb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+---
+* [Bug 3599] Build fails on linux-m68k due to alignment issues <perlinger@ntp.org>
+  - added padding as suggested by John Paul Adrian Glaubitz 
+
 ---
 (4.2.8p13) 2019/03/07 Released by Harlan Stenn <stenn@ntp.org>
 
index d05a67f7538285a9c349f84988595d3dbd50dbe0..d3fc60d3e4375c681a743edda5a5706988987ff4 100644 (file)
@@ -672,6 +672,7 @@ struct conf_restrict {
        short ippeerlimit;      /* ip peer limit */
        u_short flags;          /* restrict flags */
        u_short mflags;         /* match flags */
+       short unused1;          /*  manual padding here */
        u_int v6_flag;          /* is this v6 or not */
        struct in6_addr addr6;  /* match address (v6) */
        struct in6_addr mask6;  /* match mask (v6) */
index f07f79f36f16b7813ce46f6a179f8d0b9c29aeef..3660494bc29d887b5297dd9b7928b1d5b22d1542 100644 (file)
@@ -275,6 +275,7 @@ offsetof(mask) = 4
 offsetof(ippeerlimit) = 8
 offsetof(flags) = 10
 offsetof(mflags) = 12
+offsetof(unused1) = 14
 offsetof(v6_flag) = 16
 offsetof(addr6) = 20
 offsetof(mask6) = 36