git: b44542d3dfc7 - stable/14 - libdtrace: Fix line number reporting in error messages

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sun, 07 Jan 2024 16:58:10 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=b44542d3dfc77012b6e63f51969daf2a38b6db2f

commit b44542d3dfc77012b6e63f51969daf2a38b6db2f
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-12-31 17:37:06 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-01-07 16:55:57 +0000

    libdtrace: Fix line number reporting in error messages
    
    MFC after:      1 week
    
    (cherry picked from commit ad3174ecea3374442b3504149fe2b5a9d9ec6f1e)
---
 cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l
index 7dcf21652586..d50369bb57c9 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_lex.l
@@ -97,6 +97,8 @@ static void unput(int);
  */
 %}
 
+%option yylineno
+
 %e 1500		/* maximum nodes */
 %p 4900		/* maximum positions */
 %n 600		/* maximum states */