k...@openbsd.org writes: > http://build-failures.rhaalovely.net/sparc64/2021-11-26/databases/pspg.log
> cc -c src/args.c -o args.o -I/usr/local/include/ereadline [...] > src/args.c: In function 'print_versions': > src/args.c:262: error: '__SIZEOF_WCHAR_T__' undeclared (first use in this > function) > src/args.c:262: error: (Each undeclared identifier is reported only once > src/args.c:262: error: for each function it appears in.) something like this is enough to build it (it's the only occurrence of __SIZEOF_WCHAR_T__) or do we need to change COMPILER to `base-clang ports-gcc'? Index: Makefile =================================================================== RCS file: /home/cvs/ports/databases/pspg/Makefile,v retrieving revision 1.3 diff -u -p -r1.3 Makefile --- Makefile 8 Nov 2021 15:00:15 -0000 1.3 +++ Makefile 2 Dec 2021 10:25:15 -0000 @@ -5,6 +5,7 @@ COMMENT = UNIX pager optimized for tabul GH_ACCOUNT = okbob GH_PROJECT = pspg GH_TAGNAME = 5.5.1 +REVISION = 0 CATEGORIES = databases Index: patches/patch-src_args_c =================================================================== RCS file: patches/patch-src_args_c diff -N patches/patch-src_args_c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-src_args_c 2 Dec 2021 10:11:57 -0000 @@ -0,0 +1,14 @@ +$OpenBSD$ + +Index: src/args.c +--- src/args.c.orig ++++ src/args.c +@@ -259,7 +259,7 @@ print_versions(void) + + #endif + +- fprintf(stdout, "wchar_t width: %d, max: %d\n", __SIZEOF_WCHAR_T__, __WCHAR_MAX__); ++ fprintf(stdout, "wchar_t width: %d, max: %d\n", sizeof(wchar_t), __WCHAR_MAX__); + + #ifdef HAVE_POSTGRESQL +