[Bug 279397] www/chromium sqlite3_shim.c compilation error

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 31 May 2024 09:50:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279397

--- Comment #4 from Tatsuki Makino <tatsuki_makino@hotmail.com> ---
The reason why alloca is not defined is likely to be the following part.

# 14123 "../../third_party/sqlite/src/amalgamation/sqlite3.c"
#define _XOPEN_SOURCE 600

This defines _POSIX_C_SOURCE and makes __BSD_VISIBLE completely undefined.

Line 14123 of ${WRKSRC}/third_party/sqlite/src/amalgamation/sqlite3.c reads as
follows

/*
** We need to define _XOPEN_SOURCE as follows in order to enable
** recursive mutexes on most Unix systems and fchmod() on OpenBSD.
** But _XOPEN_SOURCE define causes problems for Mac OS X, so omit
** it.
*/
#if !defined(_XOPEN_SOURCE) && !defined(__DARWIN__) && !defined(__APPLE__)
#  define _XOPEN_SOURCE 600
#endif

-- 
You are receiving this mail because:
You are the assignee for the bug.