head 1.2; access; symbols; locks; strict; comment @ * @; 1.2 date 2026.09.16.09.47.45; author micha; state dead; branches; next 1.1; commitid XkQvYFXesQPhtPVG; 1.1 date 2026.09.09.16.03.19; author micha; state Exp; branches; next ; commitid ghzZQkPgSO3YMXUG; desc @@ 1.2 log @news/canlock-hp: Build fix for SunOS Second attempt to expose the POSIX APIs for SunOS. @ text @$NetBSD: patch-hp_util_hfp__lexer.l,v 1.1 2026/09/09 16:03:19 micha Exp $ lex on SunOS generates code that does not compile without POSIX declaration. --- hp/util/hfp_lexer.l.orig 2026-05-13 14:05:43.000000000 +0000 +++ hp/util/hfp_lexer.l @@@@ -1,7 +1,7 @@@@ %{ /* * SPDX-FileType: SOURCE - * SPDX-FileCopyrightText: (c) 2018-2021 Michael Baeuerle + * SPDX-FileCopyrightText: (c) 2018-2026 Michael Baeuerle * SPDX-License-Identifier: ICU */ @@@@ -9,6 +9,9 @@@@ /* ========================================================================== */ /* Code copied verbatim by lexer */ +/*! Tell headers that they should be POSIX compliant */ +#define _POSIX_C_SOURCE 200112L + #include #include #include @ 1.1 log @news/canlock-hp: Build fix for SunOS @ text @d1 1 a1 1 $NetBSD$ @