packages/utils/hwinfo/patches/050-arc.patch
Rosen Penev 6af7fbbf01 hwinfo: fix compilation with ARC
Added a small patch to fix compilation.

Renamed patch files to have a .patch suffix. Makes them easier to read
with vim and probably IDEs.

Remove UCLIBC depend since it's no longer present.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-05-29 01:19:26 -07:00

13 lines
207 B
Diff

--- a/src/hd/hd.c
+++ b/src/hd/hd.c
@@ -156,6 +156,10 @@
#define HD_ARCH "riscv"
#endif
+#ifdef __arc__
+#define HD_ARCH "arc"
+#endif
+
typedef struct disk_s {
struct disk_s *next;
unsigned crc;