pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/nbsed/files



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Wed Mar 13 11:09:28 UTC 2024

Modified Files:
        pkgsrc/textproc/nbsed/files: main.c

Log Message:
nbsed: Add __UNCONST compat.

This now builds on macOS, still failing on other OS.  Running the test suite
appears to show no differences, at least compared to macOS 14.3.1's sed.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/textproc/nbsed/files/main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/nbsed/files/main.c
diff -u pkgsrc/textproc/nbsed/files/main.c:1.7 pkgsrc/textproc/nbsed/files/main.c:1.8
--- pkgsrc/textproc/nbsed/files/main.c:1.7      Wed Mar 13 11:07:48 2024
+++ pkgsrc/textproc/nbsed/files/main.c  Wed Mar 13 11:09:28 2024
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.7 2024/03/13 11:07:48 jperkin Exp $ */
+/*     $NetBSD: main.c,v 1.8 2024/03/13 11:09:28 jperkin Exp $ */
 
 /*-
  * Copyright (c) 2013 Johann 'Myrkraverk' Oskarsson.
@@ -45,7 +45,7 @@
 #if HAVE_SYS_CDEFS_H
 #include <sys/cdefs.h>
 #endif
-__RCSID("$NetBSD: main.c,v 1.7 2024/03/13 11:07:48 jperkin Exp $");
+__RCSID("$NetBSD: main.c,v 1.8 2024/03/13 11:09:28 jperkin Exp $");
 #ifdef __FBSDID
 __FBSDID("$FreeBSD: head/usr.bin/sed/main.c 252231 2013-06-26 04:14:19Z pfg $");
 #endif
@@ -113,6 +113,10 @@ static const char sccsid[] = "@(#)main.c
 #include "defs.h"
 #include "extern.h"
 
+#ifndef __UNCONST
+#define __UNCONST(a)   ((void *)(unsigned long)(const void *)(a))
+#endif
+
 /*
  * Linked list of units (strings and files) to be compiled
  */



Home | Main Index | Thread Index | Old Index