From 688338ba061ec66d9a852e328e9cd8865f774f3a Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Tue, 25 Oct 2022 19:40:41 +0800
Subject: [PATCH] tcpdump Add sw64 architecture

Signed-off-by: rpm-build <rpm-build>
---
 extract.h    | 2 +-
 print-fddi.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/extract.h b/extract.h
index 2ea7763..8ff8e92 100644
--- a/extract.h
+++ b/extract.h
@@ -134,7 +134,7 @@ EXTRACT_IPV4_TO_HOST_ORDER(const void *p)
 	return ((uint32_t)ntohl(*(const uint32_t *)(p)));
 }
 #elif ND_IS_AT_LEAST_GNUC_VERSION(2,0) && \
-    (defined(__alpha) || defined(__alpha__) || \
+    (defined(__alpha) || defined(__alpha__) || defined(__sw_64) || defined(__sw_64__) || \
      defined(__mips) || defined(__mips__))
 /*
  * This is MIPS or Alpha, which don't natively handle unaligned loads,
diff --git a/print-fddi.c b/print-fddi.c
index fb8d3ed..25368bf 100644
--- a/print-fddi.c
+++ b/print-fddi.c
@@ -84,7 +84,7 @@ struct fddi_header {
 /*
  * Some FDDI interfaces use bit-swapped addresses.
  */
-#if defined(ultrix) || defined(__alpha) || defined(__bsdi) || defined(__NetBSD__) || defined(__linux__)
+#if defined(ultrix) || defined(__alpha) || defined(__sw_64) || defined(__bsdi) || defined(__NetBSD__) || defined(__linux__)
 static int fddi_bitswap = 0;
 #else
 static int fddi_bitswap = 1;
-- 
2.33.0

