linux-atm/fix-build-after-y2038-changes-in-glibc.patch
Jiri Bohac d06e95453d - Add linux-atm-C99.patch to fix a wrong type being passed to
functionaccept which violates C99 rules and causes compilation to
  fail with GCC 14 (and IMHO can cause wrong behavior on big-endian
  systems).  [boo#1221006]

If the request is OK, please also forward it to Factory soon-ish so
that we can switch the default compiler.

OBS-URL: https://build.opensuse.org/package/show/Base:System/linux-atm?expand=0&rev=27
2024-07-12 11:52:56 +00:00

35 lines
871 B
Diff

From: Bastien Nocera <hadess@hadess.net>
Date: Fri, 7 Jun 2019 09:51:33 +0200
Subject: fix build after y2038 changes in glibc
Patch-mainline: upstream seems to be dead
SIOCGSTAMP is now defined in linux/sockios.h. Include that file wherever
needed.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
src/maint/atmdump.c | 1 +
src/maint/saaldump.c | 1 +
2 files changed, 2 insertions(+)
--- a/src/maint/atmdump.c
+++ b/src/maint/atmdump.c
@@ -16,6 +16,7 @@
#include <sys/socket.h>
#include <netinet/in.h> /* for htonl and ntohl */
#include <atm.h>
+#include <linux/sockios.h>
static const char *pti[] = { "Data SDU 0","Data SDU 1","Data SDU 0, CE",
--- a/src/maint/saaldump.c
+++ b/src/maint/saaldump.c
@@ -16,6 +16,7 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <atm.h>
+#include <linux/sockios.h>
#include "pdu.h"
#define DUMP_MODE