From 5c8a08bf2260585ffd0202f3506456e53b74e987 Mon Sep 17 00:00:00 2001 From: wzx Date: Thu, 24 Nov 2022 14:10:28 +0800 Subject: [PATCH] Add sw64 architecture Add sw64 architecture in file runtime/syntax/debcontrol.vim and src/osdef1.h.in to support sw64 architecture. Signed-off-by: wzx --- runtime/syntax/debcontrol.vim | 2 +- src/osdef1.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/syntax/debcontrol.vim b/runtime/syntax/debcontrol.vim index 9085cd0..5c945c4 100644 --- a/runtime/syntax/debcontrol.vim +++ b/runtime/syntax/debcontrol.vim @@ -28,7 +28,7 @@ syn match debControlSpace "[ \t]" let s:kernels = ['linux', 'hurd', 'kfreebsd', 'knetbsd', 'kopensolaris', 'netbsd'] let s:archs = [ - \ 'alpha', 'amd64', 'armeb', 'armel', 'armhf', 'arm64', 'avr32', 'hppa' + \ 'alpha', 'sw_64', 'amd64', 'armeb', 'armel', 'armhf', 'arm64', 'avr32', 'hppa' \, 'i386', 'ia64', 'lpia', 'm32r', 'm68k', 'mipsel', 'mips64el', 'mips' \, 'powerpcspe', 'powerpc', 'ppc64el', 'ppc64', 'riscv64', 's390x', 's390', 'sh3eb' \, 'sh3', 'sh4eb', 'sh4', 'sh', 'sparc64', 'sparc', 'x32' diff --git a/src/osdef1.h.in b/src/osdef1.h.in index 825fe94..f8c3b9d 100644 --- a/src/osdef1.h.in +++ b/src/osdef1.h.in @@ -132,7 +132,7 @@ extern char *getcwd(char *, int); #else extern char *getwd(char *); #endif -#ifndef __alpha /* suggested by Campbell */ +#if !defined __alpha && !defined __sw_64 /* suggested by Campbell */ extern int ioctl(int, int, ...); #endif extern int chmod(const char *, mode_t); -- 2.33.0