pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/time/xdiary
Module Name: pkgsrc
Committed By: vins
Date: Sun Jan 22 20:08:17 UTC 2023
Added Files:
pkgsrc/time/xdiary: DESCR Makefile PLIST distinfo
pkgsrc/time/xdiary/patches: patch-XDiary.tmpl
patch-dtools_xtmCalendar.c patch-dtools_xtmDbTools.c
patch-dtools_xtmEditEntry.c patch-dtools_xtmMsgSelect.c
patch-dtools_xtmMsgSend.c patch-dtools_xtmPlan.c
patch-dtools_xtmPrEntries.c patch-dtools_xtmReminder.c
patch-dtools_xtmSchedAct.c patch-dtools_xtmSchedMain.c
patch-dtools_xtmShowToDo.c patch-tools_SigHandler.c
patch-tools_System.c patch-xdaclunix_xtmAclUnix.c
patch-xdalarm_xtmAlarmProc.c patch-xdcustom_xtmCustom.c
patch-xdiary_xtmDiary.c patch-xdlight_xtmDiaryLgt.c
patch-xdnotify_xtmNotify.c patch-xdprformat_xtmPrFormat.c
patch-xdremind_xtmRemMain.c patch-xdremove_xtmRemove.c
patch-xdrestore_xtmRestore.c patch-xtools_XmUbTimeB.c
patch-xtools_xitColorSel.c patch-xtools_xitError.c
patch-xtools_xitInfoSrch.c patch-xtools_xitInfoToc.c
patch-xtools_xitXmStr.c
Log Message:
time/xdiary: import packae from wip.
XDiary is a Motif/X Windows application that combines the functions of
a desktop calendar, an appointment book and an alarm clock
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/time/xdiary/DESCR pkgsrc/time/xdiary/Makefile \
pkgsrc/time/xdiary/PLIST pkgsrc/time/xdiary/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/time/xdiary/patches/patch-XDiary.tmpl \
pkgsrc/time/xdiary/patches/patch-dtools_xtmCalendar.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmDbTools.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmEditEntry.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSelect.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSend.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmPlan.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmPrEntries.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmReminder.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedAct.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedMain.c \
pkgsrc/time/xdiary/patches/patch-dtools_xtmShowToDo.c \
pkgsrc/time/xdiary/patches/patch-tools_SigHandler.c \
pkgsrc/time/xdiary/patches/patch-tools_System.c \
pkgsrc/time/xdiary/patches/patch-xdaclunix_xtmAclUnix.c \
pkgsrc/time/xdiary/patches/patch-xdalarm_xtmAlarmProc.c \
pkgsrc/time/xdiary/patches/patch-xdcustom_xtmCustom.c \
pkgsrc/time/xdiary/patches/patch-xdiary_xtmDiary.c \
pkgsrc/time/xdiary/patches/patch-xdlight_xtmDiaryLgt.c \
pkgsrc/time/xdiary/patches/patch-xdnotify_xtmNotify.c \
pkgsrc/time/xdiary/patches/patch-xdprformat_xtmPrFormat.c \
pkgsrc/time/xdiary/patches/patch-xdremind_xtmRemMain.c \
pkgsrc/time/xdiary/patches/patch-xdremove_xtmRemove.c \
pkgsrc/time/xdiary/patches/patch-xdrestore_xtmRestore.c \
pkgsrc/time/xdiary/patches/patch-xtools_XmUbTimeB.c \
pkgsrc/time/xdiary/patches/patch-xtools_xitColorSel.c \
pkgsrc/time/xdiary/patches/patch-xtools_xitError.c \
pkgsrc/time/xdiary/patches/patch-xtools_xitInfoSrch.c \
pkgsrc/time/xdiary/patches/patch-xtools_xitInfoToc.c \
pkgsrc/time/xdiary/patches/patch-xtools_xitXmStr.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/time/xdiary/DESCR
diff -u /dev/null pkgsrc/time/xdiary/DESCR:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/DESCR Sun Jan 22 20:08:17 2023
@@ -0,0 +1,9 @@
+XDiary is a Motif/X Windows application that combines the functions of
+a desktop calendar, an appointment book and an alarm clock. XDiary
+will help you keep track of your meetings, appointments and plan
+your time.
+
+XDiary can be used as a stand-alone tool but it also contains all
+the functions necessary to be used as a group calendar. As a group
+calendar, XDiary will help you to plan meetings, distribute information
+to specific groups etc.
Index: pkgsrc/time/xdiary/Makefile
diff -u /dev/null pkgsrc/time/xdiary/Makefile:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/Makefile Sun Jan 22 20:08:17 2023
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+DISTNAME= xmdiary-3.0.3
+PKGNAME= ${DISTNAME:S/m//}
+CATEGORIES= time x11
+MASTER_SITES= ${MASTER_SITE_XCONTRIB:=office/}
+
+MAINTAINER= vins%NetBSD.org@localhost
+HOMEPAGE= https://www.ibiblio.org/pub/X11/contrib/office/xmdiary-README
+COMMENT= Calendar utility based on Motif/X
+LICENSE= 0-clause-bsd
+
+MKPIE_SUPPORTED= no
+
+USE_IMAKE= yes
+
+SUBST_CLASSES+= cc
+SUBST_STAGE.cc= pre-configure
+SUBST_FILES.cc= XDiary.tmpl
+SUBST_VARS.cc= CC
+SUBST_MESSAGE.cc= Defining preferred compiler.
+
+SUBST_CLASSES+= malloc
+SUBST_STAGE.malloc= pre-configure
+SUBST_FILES.malloc= tools/LstLinked.c tools/System.c \
+ xtools/xitClipboard.c xtools/xitInfoFile.c
+SUBST_MESSAGE.malloc= Replacing malloc.h
+SUBST_SED.malloc= -e 's|<malloc.h>|<stdlib.h>|g'
+
+MAKE_FLAGS+= INSTALL=${INSTALL:Q}
+MAKE_FLAGS+= CCOPTIONS=${CFLAGS:Q}
+MAKE_FLAGS+= LOCAL_LDFLAGS=${LDFLAGS:Q}
+
+MAKE_FLAGS+= XDEXEDIR=${PREFIX}/bin
+MAKE_FLAGS+= XDMANDIR=${PREFIX}/${PKGMANDIR}/man1
+MAKE_FLAGS+= XDDATADIR=${PREIFX}/lib/${PKGBASE}
+MAKE_FLAGS+= XDAPPDIR=${PREFIX}/lib/X11/app-defaults
+
+INSTALLATION_DIRS+= share/doc/${PKGBASE}
+
+post-install:
+ ${RUN}${PRINTF} '%s\n' \
+ 'XDiary requires the XAPPLRESDIR environmental variable to be set to:' \
+ '${PREFIX}/lib/X11/app-defaults' > \
+ ${DESTDIR}${PREFIX}/share/doc/xdiary/README.pkgsrc
+
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libXpm/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../mk/motif.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/time/xdiary/PLIST
diff -u /dev/null pkgsrc/time/xdiary/PLIST:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/PLIST Sun Jan 22 20:08:17 2023
@@ -0,0 +1,37 @@
+@comment $NetBSD: PLIST,v 1.1 2023/01/22 20:08:17 vins Exp $
+bin/xdaclunix
+bin/xdalarm
+bin/xdcustom
+bin/xddump
+bin/xdiary
+bin/xdinitdb
+bin/xdlight
+bin/xdlocation
+bin/xdnotify
+bin/xdprformat
+bin/xdprint
+bin/xdremind
+bin/xdremote
+bin/xdremove
+bin/xdrestore
+lib/X11/app-defaults/XDiary
+lib/X11/app-defaults/XDiary.map
+lib/libTools.a
+lib/libXdiary.a
+lib/libXdndbm.a
+lib/libXtools.a
+man/man1/xdaclunix.1
+man/man1/xdalarm.1
+man/man1/xdcustom.1
+man/man1/xddump.1
+man/man1/xdiary.1
+man/man1/xdinitdb.1
+man/man1/xdlight.1
+man/man1/xdnotify.1
+man/man1/xdprformat.1
+man/man1/xdremind.1
+man/man1/xdremove.1
+man/man1/xdrestore.1
+share/doc/xdiary/README.pkgsrc
+@pkgdir include
+@pkgdir doc/xdiary
Index: pkgsrc/time/xdiary/distinfo
diff -u /dev/null pkgsrc/time/xdiary/distinfo:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/distinfo Sun Jan 22 20:08:17 2023
@@ -0,0 +1,35 @@
+$NetBSD: distinfo,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+BLAKE2s (xmdiary-3.0.3.tar.gz) = 225c678fd5e2a2d080346ca22fc5bf31393e63ea51506002098e3c8c7f0c5709
+SHA512 (xmdiary-3.0.3.tar.gz) = a699703c2a71f702dbe25a5c57a461dc14581df108b85e7a092ee52be18dbd26c80b0df91c00a96a759816863c42519c77d22857eda916c66735634fdce9fe1c
+Size (xmdiary-3.0.3.tar.gz) = 764331 bytes
+SHA1 (patch-XDiary.tmpl) = c9c6dab155fa6dd607e998134fbf1aa1d65937ef
+SHA1 (patch-dtools_xtmCalendar.c) = 1106929782e3438e0fb90a7624cf723338d1f800
+SHA1 (patch-dtools_xtmDbTools.c) = d6249849e091a11d08fecd31832a746e31ebda6a
+SHA1 (patch-dtools_xtmEditEntry.c) = 32a483d44b1e2638c042184ba70585c212fb214c
+SHA1 (patch-dtools_xtmMsgSelect.c) = 3937992e9399b4de1104c3739fd8fac8df47d6ba
+SHA1 (patch-dtools_xtmMsgSend.c) = 282cc4c842bcb5929f80b62becb724da4273699d
+SHA1 (patch-dtools_xtmPlan.c) = 9e59061c656fe71da0b85d786b2a64f06e1eec6c
+SHA1 (patch-dtools_xtmPrEntries.c) = d8c917f3690d98b26939956c6f1374663f74bda0
+SHA1 (patch-dtools_xtmReminder.c) = d44b3e924dccabf8f5053d032485a325e28fa7f5
+SHA1 (patch-dtools_xtmSchedAct.c) = f9835884e17369fffd39e3679a0a5125255e36d3
+SHA1 (patch-dtools_xtmSchedMain.c) = 782a36ee32910ec9142dee05773e28f1e0990463
+SHA1 (patch-dtools_xtmShowToDo.c) = 5ca6b0b4939e7d55758546fb937066118c672677
+SHA1 (patch-tools_SigHandler.c) = 841cd0b3f67a498cad89af288eace1e7beaa1fdb
+SHA1 (patch-tools_System.c) = 165ac4c772e593b8671221c80a09059fc4044f75
+SHA1 (patch-xdaclunix_xtmAclUnix.c) = 9abbd51d9d96b46d71ec4835beabd058f7743601
+SHA1 (patch-xdalarm_xtmAlarmProc.c) = 322a0aae64307f4aa9599d834b6e5fa34666e4c9
+SHA1 (patch-xdcustom_xtmCustom.c) = e40509f3d0471838a8daa0134de5147ed1e8e02e
+SHA1 (patch-xdiary_xtmDiary.c) = f6bc11b6898001b02190044be3742af79869f46a
+SHA1 (patch-xdlight_xtmDiaryLgt.c) = f1041d6dbdf9cd703678d0607b62de4b91c804c8
+SHA1 (patch-xdnotify_xtmNotify.c) = a2d0a3276cd6efb231b4b0106e64351aff534e50
+SHA1 (patch-xdprformat_xtmPrFormat.c) = 748b0a6ce74805e28b52d04fb74574ac219399af
+SHA1 (patch-xdremind_xtmRemMain.c) = 44609d5af8c58f5d2782a32db3a94acb8355105a
+SHA1 (patch-xdremove_xtmRemove.c) = 4e6ce3410d7b8bd30e23aa4c424cb923e99728e1
+SHA1 (patch-xdrestore_xtmRestore.c) = 37c69e18cad485addbc85a85fdf41e9991048c14
+SHA1 (patch-xtools_XmUbTimeB.c) = f236503f1be2ac1fe6a21a33dfb6be0d7675d005
+SHA1 (patch-xtools_xitColorSel.c) = 69a808ce5ebf0215e6a89cb032ebca10c4892469
+SHA1 (patch-xtools_xitError.c) = de21b543bfa68ab9b58c3ccc514d2a716ac34dc7
+SHA1 (patch-xtools_xitInfoSrch.c) = 16574582ba312ec997eb703801f42f9804948e1d
+SHA1 (patch-xtools_xitInfoToc.c) = f652adb87d993de35645731f898b64b1218e0cdf
+SHA1 (patch-xtools_xitXmStr.c) = 70af54fe34de732240ad752190ae0e03dc989c7c
Index: pkgsrc/time/xdiary/patches/patch-XDiary.tmpl
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-XDiary.tmpl:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-XDiary.tmpl Sun Jan 22 20:08:17 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-XDiary.tmpl,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Honor pkgsrc's default compiler.
+
+--- XDiary.tmpl.orig 1997-05-07 19:51:46.000000000 +0000
++++ XDiary.tmpl
+@@ -111,7 +111,7 @@ XDMANDIR = /usr/local/man/man1
+ -----------------------------------------------------------------------------*/
+
+ #undef CcCmd
+-#define CcCmd gcc
++#define CcCmd @CC@
+ EXTRA_DEFINES =
+
+
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmCalendar.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmCalendar.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmCalendar.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,41 @@
+$NetBSD: patch-dtools_xtmCalendar.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmCalendar.c.orig 1997-05-04 21:09:55.000000000 +0000
++++ dtools/xtmCalendar.c
+@@ -39,6 +39,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <time.h>
+ #include <sys/types.h>
+@@ -779,7 +780,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t) index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -1406,7 +1407,7 @@ static void
+ /* Code. */
+
+ /* About window? */
+- if( (int) call_data -> data == 6 ) {
++ if( (intptr_t) call_data -> data == 6 ) {
+ xtmHlDisplayAboutWindow( cal_ref -> calFormW );
+
+ return;
+@@ -1414,7 +1415,7 @@ static void
+
+ /* Use the standard help. */
+ xtmHlDisplayHelp( cal_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ cal_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmDbTools.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmDbTools.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmDbTools.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,87 @@
+$NetBSD: patch-dtools_xtmDbTools.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+Add a mode to open() call with O_CREAT.
+
+--- dtools/xtmDbTools.c.orig 1997-05-04 22:27:52.000000000 +0000
++++ dtools/xtmDbTools.c
+@@ -47,6 +47,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <fcntl.h>
+ #include <stdio.h>
++#include <stdint.h>
+ #include <unistd.h>
+ #include <ctype.h>
+ #include <sys/stat.h>
+@@ -1813,7 +1814,7 @@ XTM_DB_STATUS
+
+ /* Insert the date in the sorted list. */
+ lst_status = LstLinkSearchFirst( *list_ref,
+- (void *) record.date,
++ (void *)(uintptr_t)record.date,
+ (EQUALS_FUNC_TYPE) dateSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -1896,7 +1897,7 @@ XTM_DB_STATUS
+ case XTM_DB_DAY_NOTE:
+ lst_status = LstLinkSearchFirst(
+ *note_list_ref,
+- (void *) entry_record.entry.time_stamp,
++ (void *)(uintptr_t)entry_record.entry.time_stamp,
+ (EQUALS_FUNC_TYPE) entryIdSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -1910,7 +1911,7 @@ XTM_DB_STATUS
+ case XTM_DB_DAY_ENTRY:
+ lst_status = LstLinkSearchFirst(
+ *entry_list_ref,
+- (void *) entry_record.entry.time_stamp,
++ (void *)(uintptr_t)entry_record.entry.time_stamp,
+ (EQUALS_FUNC_TYPE) entryTimeSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -1984,7 +1985,7 @@ XTM_DB_STATUS
+ case XTM_DB_DAY_NOTE:
+ lst_status = LstLinkSearchFirst(
+ *note_list_ref,
+- (void *) entry_record.entry.time_stamp,
++ (void *)(uintptr_t)entry_record.entry.time_stamp,
+ (EQUALS_FUNC_TYPE) entryIdSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -1998,7 +1999,7 @@ XTM_DB_STATUS
+ case XTM_DB_DAY_ENTRY:
+ lst_status = LstLinkSearchFirst(
+ *entry_list_ref,
+- (void *) entry_record.entry.time_stamp,
++ (void *)(uintptr_t)entry_record.entry.time_stamp,
+ (EQUALS_FUNC_TYPE) entryTimeSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -2072,7 +2073,7 @@ XTM_DB_STATUS
+ case XTM_DB_DAY_NOTE:
+ lst_status = LstLinkSearchFirst(
+ *note_list_ref,
+- (void *) entry_record.entry.time_stamp,
++ (void *)(uintptr_t)entry_record.entry.time_stamp,
+ (EQUALS_FUNC_TYPE) entryIdSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -2086,7 +2087,7 @@ XTM_DB_STATUS
+ case XTM_DB_DAY_ENTRY:
+ lst_status = LstLinkSearchFirst(
+ *entry_list_ref,
+- (void *) entry_record.entry.time_stamp,
++ (void *)(uintptr_t)entry_record.entry.time_stamp,
+ (EQUALS_FUNC_TYPE) entryTimeSortFunc );
+
+ if( lst_status == LST_OK )
+@@ -2332,7 +2333,7 @@ XTM_DB_STATUS
+ sprintf( filename, "%s/%s_%s_%d",
+ message_dir, XTM_DB_MESSAGE_FILE, msg_info -> from, new_id );
+
+- file_ref = open( filename, (O_CREAT | O_RDWR) );
++ file_ref = open( filename, (O_CREAT | O_RDWR, 0600) );
+ if( file_ref == -1 )
+ raise exception;
+
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmEditEntry.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmEditEntry.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmEditEntry.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-dtools_xtmEditEntry.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmEditEntry.c.orig 1997-05-04 22:27:52.000000000 +0000
++++ dtools/xtmEditEntry.c
+@@ -38,6 +38,7 @@ static char SCCSID[] = "@(#) Module: xtm
+ #include <string.h>
+ #include <stdlib.h>
+ #include <stdio.h>
++#include <stdint.h>
+ #include <sys/types.h>
+ #include <sys/signal.h>
+ #include <sys/stat.h>
+@@ -877,7 +878,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) helpCB, (XtPointer) index );
++ (XtCallbackProc) helpCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -2915,7 +2916,7 @@ static void
+ /* Code. */
+
+ xtmHlDisplayHelp( editor_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ edit_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSelect.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSelect.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSelect.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-dtools_xtmMsgSelect.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmMsgSelect.c.orig 1995-02-18 14:53:48.000000000 +0000
++++ dtools/xtmMsgSelect.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+@@ -438,7 +439,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -849,7 +850,7 @@ static void
+ /* Code. */
+
+ xtmHlDisplayHelp( sel_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ select_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSend.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSend.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmMsgSend.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,41 @@
+$NetBSD: patch-dtools_xtmMsgSend.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmMsgSend.c.orig 1997-05-04 23:13:08.000000000 +0000
++++ dtools/xtmMsgSend.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <stdio.h>
+ #include <ctype.h>
+
+@@ -611,7 +612,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -939,7 +940,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -1811,7 +1812,7 @@ static void
+ /* Code. */
+
+ xtmHlDisplayHelp( send_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ send_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmPlan.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmPlan.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmPlan.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,117 @@
+$NetBSD: patch-dtools_xtmPlan.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmPlan.c.orig 1997-05-04 21:09:51.000000000 +0000
++++ dtools/xtmPlan.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <time.h>
+ #include <ctype.h>
+@@ -1004,7 +1005,7 @@ static Widget
+
+ if( XmIsPushButton( menuFileBu[ index ] ) )
+ XtAddCallback( menuFileBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) fileMenuCB, (XtPointer) index );
++ (XtCallbackProc) fileMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* Create the control menu. */
+@@ -1019,10 +1020,10 @@ static Widget
+
+ if( XmIsPushButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ else if( XmIsToggleButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNvalueChangedCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* Create the options menu. */
+@@ -1035,7 +1036,7 @@ static Widget
+
+ if( XmIsPushButton( menuOptBu[ index ] ) )
+ XtAddCallback( menuOptBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) optMenuCB, (XtPointer) index );
++ (XtCallbackProc) optMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* Create the help menu. */
+@@ -1048,7 +1049,7 @@ static Widget
+
+ if( XmIsPushButton( menuHelpBu[ index ] ) )
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -3434,7 +3435,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Instant update. */
+ case 0:
+@@ -3583,7 +3584,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Close the window. */
+ case 0:
+@@ -3609,7 +3610,7 @@ static void
+ /* Variables. */
+ Boolean ok;
+ int char_read;
+- int ref_count;
++ intptr_t ref_count;
+ char calendar[ XTM_GL_MAX_CAL_NAME + 1 ];
+ char *group_name;
+ char *members_ref;
+@@ -3664,7 +3665,7 @@ static void
+ XtSetArg( args[ n ], XmNuserData, &user_data_ref ); n++;
+ XtGetValues( calW, args, n );
+
+- ref_count = (int) user_data_ref;
++ ref_count = (intptr_t) user_data_ref;
+
+ if( call_data -> set ) {
+ if( ref_count < 1 )
+@@ -3710,7 +3711,7 @@ static void
+ /* Code. */
+
+ /* About window? */
+- if( (int) call_data -> data == 6 ) {
++ if( (intptr_t) call_data -> data == 6 ) {
+ xtmHlDisplayAboutWindow( plan_ref -> plannerW );
+
+ return;
+@@ -3718,7 +3719,7 @@ static void
+
+ /* Use the standard help. */
+ xtmHlDisplayHelp( plan_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ planner_window_id, "" );
+
+ return;
+@@ -3810,7 +3811,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Send message. */
+ case 0:
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmPrEntries.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmPrEntries.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmPrEntries.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,54 @@
+$NetBSD: patch-dtools_xtmPrEntries.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmPrEntries.c.orig 1997-05-04 21:09:51.000000000 +0000
++++ dtools/xtmPrEntries.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <sys/types.h>
+@@ -778,10 +779,10 @@ static Widget
+
+ if( XmIsPushButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ else if( XmIsToggleButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNvalueChangedCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* Create the help menu. */
+@@ -793,7 +794,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -1815,7 +1816,7 @@ static void
+ custom_data_ref = printer_ref -> appl_data_ref -> custom_data;
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Filter window. */
+ case 0:
+@@ -2005,7 +2006,7 @@ static void
+ /* Code. */
+
+ xtmHlDisplayHelp( printer_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ print_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmReminder.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmReminder.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmReminder.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,41 @@
+$NetBSD: patch-dtools_xtmReminder.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmReminder.c.orig 1997-05-04 21:09:51.000000000 +0000
++++ dtools/xtmReminder.c
+@@ -38,6 +38,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <stdio.h>
+
+ #include <X11/Intrinsic.h>
+@@ -580,7 +581,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) helpCB, (XtPointer) index );
++ (XtCallbackProc) helpCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -1093,7 +1094,7 @@ static void
+ /* Code. */
+
+ /* About window? */
+- if( (int) call_data -> data == 6 ) {
++ if( (intptr_t) call_data -> data == 6 ) {
+ xtmHlDisplayAboutWindow( reminder_ref -> reminderW );
+
+ return;
+@@ -1105,7 +1106,7 @@ static void
+ /* Call the user callback. */
+ (* reminder_ref -> helpCB)( reminder_ref -> reminderW,
+ reminder_ref -> user_data,
+- (int) call_data -> data );
++ (intptr_t) call_data -> data );
+
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedAct.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedAct.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedAct.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-dtools_xtmSchedAct.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmSchedAct.c.orig 1997-05-04 21:16:55.000000000 +0000
++++ dtools/xtmSchedAct.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <string.h>
+
+ #include <X11/Intrinsic.h>
+@@ -1967,7 +1968,7 @@ static Widget
+
+ if( XmIsPushButton( menuPopupBu[ index ] ) )
+ XtAddCallback( menuPopupBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) entryPuMenuCB, (XtPointer) index );
++ (XtCallbackProc) entryPuMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+ XtManageChildren( menuPopupBu, XtNumber( menuPopupBu ) );
+@@ -2106,7 +2107,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Edit the entry. */
+ case 0:
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedMain.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedMain.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmSchedMain.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,126 @@
+$NetBSD: patch-dtools_xtmSchedMain.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmSchedMain.c.orig 1997-05-04 23:16:02.000000000 +0000
++++ dtools/xtmSchedMain.c
+@@ -38,6 +38,7 @@ static char SCCSID[] = "@(#) Module: xtm
+ #include <pwd.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <time.h>
+
+@@ -1090,7 +1091,7 @@ static Widget
+
+ if( XmIsPushButton( menuFileBu[ index ] ) )
+ XtAddCallback( menuFileBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) fileMenuCB, (XtPointer) index );
++ (XtCallbackProc) fileMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+ if( flagIsSet( sched_ref -> flags, XTM_SM_ONLY_ONE ) )
+@@ -1109,7 +1110,7 @@ static Widget
+
+ if( XmIsPushButton( menuEditBu[ index ] ) )
+ XtAddCallback( menuEditBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) editMenuCB, (XtPointer) index );
++ (XtCallbackProc) editMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+
+@@ -1125,10 +1126,10 @@ static Widget
+
+ if( XmIsPushButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ else if( XmIsToggleButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNvalueChangedCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+
+@@ -1142,7 +1143,7 @@ static Widget
+
+ if( XmIsPushButton( menuOptionsBu[ index ] ) )
+ XtAddCallback( menuOptionsBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) optionsMenuCB, (XtPointer) index );
++ (XtCallbackProc) optionsMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+
+@@ -1156,7 +1157,7 @@ static Widget
+
+ if( XmIsPushButton( menuHelpBu[ index ] ) )
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -1971,7 +1972,7 @@ static void
+ mainW = XtNameToWidget( sched_ref -> scheduleW, "SchedTlBase.SchedTlFo" );
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Confirm actions? */
+ case 0:
+@@ -2277,7 +2278,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Edit the entry. */
+ case 0:
+@@ -2401,7 +2402,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Open schedule with the same database. */
+ case 0:
+@@ -2493,7 +2494,7 @@ static void
+ flagIsSet( db_info.operations, XTM_DB_FLAG_MODE_WRITE ) )
+ can_download = True;
+
+- if( (int) call_data -> data == 4 )
++ if( (intptr_t) call_data -> data == 4 )
+ xtmRtDoRemote( sched_ref -> remote_handle, XTM_RT_UPLOAD,
+ db_info.short_name, True, can_download );
+ else
+@@ -2605,7 +2606,7 @@ static void
+ /* Code. */
+
+ /* About window? */
+- if( (int) call_data -> data == 6 ) {
++ if( (intptr_t) call_data -> data == 6 ) {
+ xtmHlDisplayAboutWindow( sched_ref -> scheduleW );
+
+ return;
+@@ -2613,7 +2614,7 @@ static void
+
+ /* Use the standard help. */
+ xtmHlDisplayHelp( sched_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ day_view_window_id, "" );
+
+ return;
+@@ -3020,7 +3021,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Appointment editor. */
+ case 0:
Index: pkgsrc/time/xdiary/patches/patch-dtools_xtmShowToDo.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-dtools_xtmShowToDo.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-dtools_xtmShowToDo.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,54 @@
+$NetBSD: patch-dtools_xtmShowToDo.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- dtools/xtmShowToDo.c.orig 1997-05-04 21:26:20.000000000 +0000
++++ dtools/xtmShowToDo.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+
+ #include <string.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <stdio.h>
+
+ #include <X11/Intrinsic.h>
+@@ -665,10 +666,10 @@ static Widget
+
+ if( XmIsPushButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ else if( XmIsToggleButton( menuCtrlBu[ index ] ) )
+ XtAddCallback( menuCtrlBu[ index ], XmNvalueChangedCallback,
+- (XtCallbackProc) ctrlMenuCB, (XtPointer) index );
++ (XtCallbackProc) ctrlMenuCB, (XtPointer)(intptr_t)index );
+ }
+
+
+@@ -681,7 +682,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -1189,7 +1190,7 @@ static void
+ custom_data_ref = show_ref -> appl_data_ref -> custom_data;
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Display entry flags? */
+ case 0:
+@@ -1402,7 +1403,7 @@ static void
+ /* Code. */
+
+ xtmHlDisplayHelp( show_ref -> appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ sum_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-tools_SigHandler.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-tools_SigHandler.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-tools_SigHandler.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,20 @@
+$NetBSD: patch-tools_SigHandler.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid use of obsolete 'union wait *'.
+
+--- tools/SigHandler.c.orig 1995-02-18 13:32:44.000000000 +0000
++++ tools/SigHandler.c
+@@ -221,13 +221,7 @@ static void
+ /* Variables. */
+ int index;
+ int pid;
+-
+-#if defined(_POSIX_SOURCE) || defined(_INCLUDE_POSIX_SOURCE)
+ int status;
+-#else
+- union wait status;
+-#endif
+-
+
+ /* Code. */
+
Index: pkgsrc/time/xdiary/patches/patch-tools_System.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-tools_System.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-tools_System.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,50 @@
+$NetBSD: patch-tools_System.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- tools/System.c.orig 1997-05-07 20:15:47.000000000 +0000
++++ tools/System.c
+@@ -102,8 +102,8 @@ void
+ if( line_no > 0 )
+ printf( "%s: (%d), ", file_name, line_no );
+
+- printf( "SysBaseCalloc(), ref: %d, ref_count: %d\n",
+- (int) ref, memory_ref_count );
++ printf( "SysBaseCalloc(), ref: %p, ref_count: %d\n",
++ ref, memory_ref_count );
+
+ memory_ref_count++;
+ }
+@@ -133,8 +133,8 @@ void
+ if( line_no > 0 )
+ printf( "%s: (%d), ", file_name, line_no );
+
+- printf( "SysBaseFree(), ref: %d, ref_count: %d\n",
+- (int) pointer, memory_ref_count );
++ printf( "SysBaseFree(), ref: %p, ref_count: %d\n",
++ pointer, memory_ref_count );
+
+ memory_ref_count++;
+ }
+@@ -166,8 +166,8 @@ void
+ if( line_no > 0 )
+ printf( "%s: (%d), ", file_name, line_no );
+
+- printf( "SysBaseMalloc(), ref: %d, ref_count: %d\n",
+- (int) ref, memory_ref_count );
++ printf( "SysBaseMalloc(), ref: %p, ref_count: %d\n",
++ ref, memory_ref_count );
+
+ memory_ref_count++;
+ }
+@@ -208,8 +208,8 @@ extern void
+ if( line_no > 0 )
+ printf( "%s: (%d), ", file_name, line_no );
+
+- printf( "SysBaseRealloc(), ref: %d, ref_count: %d\n",
+- (int) ref, memory_ref_count );
++ printf( "SysBaseRealloc(), ref: %p, ref_count: %d\n",
++ ref, memory_ref_count );
+
+ memory_ref_count++;
+ }
Index: pkgsrc/time/xdiary/patches/patch-xdaclunix_xtmAclUnix.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdaclunix_xtmAclUnix.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdaclunix_xtmAclUnix.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-xdaclunix_xtmAclUnix.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Fix warnings about int signedness mismatch.
+Fix void main().
+
+--- xdaclunix/xtmAclUnix.c.orig 1997-05-04 22:02:19.000000000 +0000
++++ xdaclunix/xtmAclUnix.c
+@@ -226,8 +226,8 @@ static void
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
+- main( unsigned int argc, char *argv[] )
++int
++ main( int argc, char *argv[] )
+ {
+
+ /* Variables. */
Index: pkgsrc/time/xdiary/patches/patch-xdalarm_xtmAlarmProc.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdalarm_xtmAlarmProc.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdalarm_xtmAlarmProc.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-xdalarm_xtmAlarmProc.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Fix warnings about int signedness mismatch.
+Fix void main().
+
+--- xdalarm/xtmAlarmProc.c.orig 1997-05-04 22:02:19.000000000 +0000
++++ xdalarm/xtmAlarmProc.c
+@@ -452,8 +452,8 @@ static void
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
+- main( unsigned int argc, char *argv[] )
++int
++ main( int argc, char *argv[] )
+ {
+
+ /* Variables. */
Index: pkgsrc/time/xdiary/patches/patch-xdcustom_xtmCustom.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdcustom_xtmCustom.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdcustom_xtmCustom.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,70 @@
+$NetBSD: patch-xdcustom_xtmCustom.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- xdcustom/xtmCustom.c.orig 1997-05-04 22:02:16.000000000 +0000
++++ xdcustom/xtmCustom.c
+@@ -39,6 +39,7 @@ static char SCCSID[] = "@(#) Module: xtm
+ #include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <stdint.h>
+ #include <string.h>
+ #include <unistd.h>
+ #include <sys/types.h>
+@@ -231,8 +232,8 @@ static int
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
+- main( unsigned int argc, char *argv[] )
++int
++ main( int argc, char *argv[] )
+ {
+
+ /* Variables. */
+@@ -615,7 +616,7 @@ static Widget
+ &help_casc[ index ] );
+
+ XtAddCallback( menuHelpBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) infoCB, (XtPointer) index );
++ (XtCallbackProc) infoCB, (XtPointer)(intptr_t)index );
+ }
+
+ /* We can't do context sensitive help. */
+@@ -641,7 +642,7 @@ static Widget
+ &do_cust_def[ index ] );
+
+ XtAddCallback( doCustBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) doCustCB, (XtPointer) index );
++ (XtCallbackProc) doCustCB, (XtPointer)(intptr_t)index );
+
+ } /* loop */
+
+@@ -1451,7 +1452,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Calendar customization? */
+ case 0:
+@@ -1578,7 +1579,7 @@ static void
+ /* Code. */
+
+ /* About window? */
+- if( (int) call_data -> data == 6 ) {
++ if( (intptr_t) call_data -> data == 6 ) {
+
+ Widget tempW;
+
+@@ -1590,7 +1591,7 @@ static void
+
+ /* Use the standard help. */
+ xtmHlDisplayHelp( appl_data_ref -> info_handle,
+- (int) call_data -> data,
++ (intptr_t) call_data -> data,
+ custom_window_id, "" );
+
+ return;
Index: pkgsrc/time/xdiary/patches/patch-xdiary_xtmDiary.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdiary_xtmDiary.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdiary_xtmDiary.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-xdiary_xtmDiary.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Fix void main().
+
+--- xdiary/xtmDiary.c.orig 1997-05-05 23:13:48.000000000 +0000
++++ xdiary/xtmDiary.c
+@@ -213,7 +213,7 @@ static void
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
++int
+ main( int argc, char **argv )
+ {
+
Index: pkgsrc/time/xdiary/patches/patch-xdlight_xtmDiaryLgt.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdlight_xtmDiaryLgt.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdlight_xtmDiaryLgt.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-xdlight_xtmDiaryLgt.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Fix warnings about int signedness mismatch.
+Fix void main().
+
+--- xdlight/xtmDiaryLgt.c.orig 1997-05-04 23:13:08.000000000 +0000
++++ xdlight/xtmDiaryLgt.c
+@@ -220,8 +220,8 @@ static void
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
+- main( unsigned int argc, char **argv )
++int
++ main( int argc, char **argv )
+ {
+
+ /* Variables. */
Index: pkgsrc/time/xdiary/patches/patch-xdnotify_xtmNotify.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdnotify_xtmNotify.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdnotify_xtmNotify.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-xdnotify_xtmNotify.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Fix warnings about int signedness mismatch.
+Fix void main().
+
+--- xdnotify/xtmNotify.c.orig 1997-05-04 22:02:15.000000000 +0000
++++ xdnotify/xtmNotify.c
+@@ -244,8 +244,8 @@ static void
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
+- main( unsigned int argc, char *argv[] )
++int
++ main( int argc, char *argv[] )
+ {
+
+ /* Variables. */
Index: pkgsrc/time/xdiary/patches/patch-xdprformat_xtmPrFormat.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdprformat_xtmPrFormat.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdprformat_xtmPrFormat.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-xdprformat_xtmPrFormat.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Provide a declaration of exit()
+
+--- xdprformat/xtmPrFormat.c.orig 1997-05-04 22:02:15.000000000 +0000
++++ xdprformat/xtmPrFormat.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+ ----------------------------------------------------------------------------*/
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <ctype.h>
+ #include <time.h>
Index: pkgsrc/time/xdiary/patches/patch-xdremind_xtmRemMain.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdremind_xtmRemMain.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdremind_xtmRemMain.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,18 @@
+$NetBSD: patch-xdremind_xtmRemMain.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Fix warnings about int signedness mismatch.
+Fix void main().
+
+--- xdremind/xtmRemMain.c.orig 1997-05-04 22:02:15.000000000 +0000
++++ xdremind/xtmRemMain.c
+@@ -177,8 +177,8 @@ static void
+ -- Functions
+ ----------------------------------------------------------------------------*/
+
+-void
+- main( unsigned int argc, char *argv[] )
++int
++ main( int argc, char *argv[] )
+ {
+
+ /* Variables. */
Index: pkgsrc/time/xdiary/patches/patch-xdremove_xtmRemove.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdremove_xtmRemove.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdremove_xtmRemove.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-xdremove_xtmRemove.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Use fgets() instead of gets()
+
+--- xdremove/xtmRemove.c.orig 1997-05-04 22:02:15.000000000 +0000
++++ xdremove/xtmRemove.c
+@@ -290,8 +290,8 @@ main( int argc, char *argv[] )
+ appl_data.days, buffer, appl_data.database_dir );
+ printf( "Is this OK? (Y/N) [N]: " );
+
+- gets( buffer );
+- if( toupper( buffer[ 0 ] ) != 'Y' )
++ fgets(buffer, sizeof(buffer), stdin);
++ if( toupper( buffer[ 0 ] ) != 'Y' )
+ exit( 0 );
+ }
+
Index: pkgsrc/time/xdiary/patches/patch-xdrestore_xtmRestore.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xdrestore_xtmRestore.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xdrestore_xtmRestore.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-xdrestore_xtmRestore.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Provide a declaration of exit()
+
+--- xdrestore/xtmRestore.c.orig 1997-05-04 22:02:14.000000000 +0000
++++ xdrestore/xtmRestore.c
+@@ -37,6 +37,7 @@ static char SCCSID[] = "@(#) Module: xtm
+ ----------------------------------------------------------------------------*/
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
+ #include <ctype.h>
Index: pkgsrc/time/xdiary/patches/patch-xtools_XmUbTimeB.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xtools_XmUbTimeB.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xtools_XmUbTimeB.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,116 @@
+$NetBSD: patch-xtools_XmUbTimeB.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- xtools/XmUbTimeB.c.orig 1997-05-04 21:09:52.000000000 +0000
++++ xtools/XmUbTimeB.c
+@@ -35,6 +35,7 @@ static char SCCSID[] = "@(#) Module: XmU
+ -- Include files
+ ----------------------------------------------------------------------------*/
+
++#include <stdint.h>
+ #include <stdio.h>
+ #include <string.h>
+ #include <X11/Intrinsic.h>
+@@ -2159,7 +2160,7 @@ static void
+ /* For predefined actions, call common routine.
+ For other actions, register as callbacks directly. */
+ if( ( items[ index ].proc != XmUbTB_NO_ACTION ) &&
+- ( (int) items[ index ].proc <= (int) XmUbTB_LAST_PREDEF_ACTION ) )
++ ( (intptr_t)items[ index ].proc <= (intptr_t)XmUbTB_LAST_PREDEF_ACTION ) )
+ XtAddCallback( w, XmNactivateCallback,
+ (XtCallbackProc) MenuItemActivatedCB,
+ (XtPointer) items[ index ].proc );
+@@ -3366,51 +3367,51 @@ static void
+ XtGetValues( pb, args, n );
+
+ /* What to do depends on the selected action. */
+- switch( (int) action ){
++ switch((intptr_t)action){
+
+- case (int) XmUbTB_ACTION_THIS_WEEK:
++ case (intptr_t) XmUbTB_ACTION_THIS_WEEK:
+ FillInStartOfWeek( tbox );
+ AddDateWeek( tbox, 1, 1 );
+ break;
+
+- case (int) XmUbTB_ACTION_THIS_MONTH:
++ case (intptr_t) XmUbTB_ACTION_THIS_MONTH:
+ FillInStartOfMonth( tbox );
+ AddDateMonth( tbox, 1, 1 );
+ break;
+
+- case (int) XmUbTB_ACTION_PLUS_ONE_HOUR:
++ case (intptr_t) XmUbTB_ACTION_PLUS_ONE_HOUR:
+ AddDateHour( tbox, 1 );
+ break;
+
+- case (int) XmUbTB_ACTION_PLUS_TWO_HOURS:
++ case (intptr_t) XmUbTB_ACTION_PLUS_TWO_HOURS:
+ AddDateHour( tbox, 2 );
+ break;
+
+- case (int) XmUbTB_ACTION_PLUS_ONE_WEEK:
++ case (intptr_t) XmUbTB_ACTION_PLUS_ONE_WEEK:
+ AddDateWeek( tbox, 1, 0 );
+ break;
+
+- case (int) XmUbTB_ACTION_PLUS_TWO_WEEKS:
++ case (intptr_t) XmUbTB_ACTION_PLUS_TWO_WEEKS:
+ AddDateWeek( tbox, 2, 0 );
+ break;
+
+- case (int) XmUbTB_ACTION_PLUS_ONE_MONTH:
++ case (intptr_t) XmUbTB_ACTION_PLUS_ONE_MONTH:
+ AddDateMonth( tbox, 1, 0 );
+ break;
+
+- case (int) XmUbTB_ACTION_TIME_NOW:
++ case (intptr_t) XmUbTB_ACTION_TIME_NOW:
+ (void) XmUbTimeBoxSetStartTime( (Widget) tbox,
+ TimLocalTime( TimMakeTimeNow() ) );
+ range = False;
+ break;
+
+- case (int) XmUbTB_ACTION_DATE_NOW:
++ case (intptr_t) XmUbTB_ACTION_DATE_NOW:
+ (void) XmUbTimeBoxSetStartDate( (Widget) tbox,
+ TimLocalTime( TimMakeTimeNow() ) );
+ range = False;
+ break;
+
+- case (int) XmUbTB_ACTION_NOW:
++ case (intptr_t) XmUbTB_ACTION_NOW:
+ (void) XmUbTimeBoxSetStartDate( (Widget) tbox,
+ TimLocalTime( TimMakeTimeNow() ) );
+ (void) XmUbTimeBoxSetStartTime( (Widget) tbox,
+@@ -3425,9 +3426,9 @@ static void
+ } /* switch */
+
+ /* Set the keyboard focus to the most recently inserted text. */
+- switch( (int) action ){
++ switch( (intptr_t) action ){
+
+- case (int) XmUbTB_ACTION_TIME_NOW:
++ case (intptr_t) XmUbTB_ACTION_TIME_NOW:
+ /* Set keyboard focus to the start time field. */
+ if( tbox -> tbox.internal_children[ XmUbTB_CHILD_START_TIME ] != NULL )
+ XmProcessTraversal(
+@@ -3436,7 +3437,7 @@ static void
+
+ break;
+
+- case (int) XmUbTB_ACTION_DATE_NOW:
++ case (intptr_t) XmUbTB_ACTION_DATE_NOW:
+ /* Set keyboard focus to the start date field. */
+ if( tbox -> tbox.internal_children[ XmUbTB_CHILD_START_DATE ] != NULL )
+ XmProcessTraversal(
+@@ -3445,7 +3446,7 @@ static void
+
+ break;
+
+- case (int) XmUbTB_ACTION_NOW:
++ case (intptr_t) XmUbTB_ACTION_NOW:
+ /* Set keyboard focus to the start time or date field. */
+ if( tbox -> tbox.internal_children[ XmUbTB_CHILD_START_TIME ] != NULL )
+ XmProcessTraversal(
Index: pkgsrc/time/xdiary/patches/patch-xtools_xitColorSel.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xtools_xitColorSel.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xtools_xitColorSel.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,23 @@
+$NetBSD: patch-xtools_xitColorSel.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- xtools/xitColorSel.c.orig 1997-05-04 13:13:45.000000000 +0000
++++ xtools/xitColorSel.c
+@@ -38,6 +38,7 @@ static char SCCSID[] = "@(#) Module: xit
+ -- Include files
+ ----------------------------------------------------------------------------*/
+
++#include <stdint.h>
+ #include <stdio.h>
+
+ #include <X11/Intrinsic.h>
+@@ -302,7 +303,7 @@ Widget
+ XtManageChild( menuPb );
+
+ XtAddCallback( menuPb, XmNactivateCallback,
+- (XtCallbackProc) menuSelectCB, (XtPointer) index );
++ (XtCallbackProc) menuSelectCB, (XtPointer)(intptr_t)index );
+
+ /* The default color is the first color. */
+ if( index == 0 ) {
Index: pkgsrc/time/xdiary/patches/patch-xtools_xitError.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xtools_xitError.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xtools_xitError.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,14 @@
+$NetBSD: patch-xtools_xitError.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Provide a declaration of exit()
+
+--- xtools/xitError.c.orig 1995-02-18 14:11:29.000000000 +0000
++++ xtools/xitError.c
+@@ -39,6 +39,7 @@ static char SCCSID[] = "@(#) Module: xit
+ ----------------------------------------------------------------------------*/
+
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <string.h>
+
+ #include <X11/Intrinsic.h>
Index: pkgsrc/time/xdiary/patches/patch-xtools_xitInfoSrch.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xtools_xitInfoSrch.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xtools_xitInfoSrch.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-xtools_xitInfoSrch.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- xtools/xitInfoSrch.c.orig 1997-05-04 22:25:10.000000000 +0000
++++ xtools/xitInfoSrch.c
+@@ -35,6 +35,7 @@ static char SCCSID[] = "@(#) Module: xit
+ -- Include files
+ ----------------------------------------------------------------------------*/
+
++#include <stdint.h>
+ #include <limits.h>
+ #include <stdio.h>
+ #include <ctype.h>
+@@ -406,7 +407,7 @@ static Widget
+ gotoBu[ index ] = xitCreatePushButton( gotoRc, &goto_def[ index ] );
+
+ XtAddCallback( gotoBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) gotoCB, (XtPointer) index );
++ (XtCallbackProc) gotoCB, (XtPointer)(intptr_t)index );
+ }
+
+
+@@ -663,7 +664,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Next? */
+ case 0:
Index: pkgsrc/time/xdiary/patches/patch-xtools_xitInfoToc.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xtools_xitInfoToc.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xtools_xitInfoToc.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,32 @@
+$NetBSD: patch-xtools_xitInfoToc.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Avoid int to pointer conversion warnings.
+
+--- xtools/xitInfoToc.c.orig 1997-05-04 13:15:28.000000000 +0000
++++ xtools/xitInfoToc.c
+@@ -35,6 +35,7 @@ static char SCCSID[] = "@(#) Module: xit
+ -- Include files
+ ----------------------------------------------------------------------------*/
+
++#include <stdint.h>
+ #include <limits.h>
+ #include <stdio.h>
+ #include <ctype.h>
+@@ -355,7 +356,7 @@ static Widget
+ gotoBu[ index ] = xitCreatePushButton( gotoRc, &goto_def[ index ] );
+
+ XtAddCallback( gotoBu[ index ], XmNactivateCallback,
+- (XtCallbackProc) gotoCB, (XtPointer) index );
++ (XtCallbackProc) gotoCB, (XtPointer)(intptr_t)index );
+ }
+
+
+@@ -702,7 +703,7 @@ static void
+
+
+ /* Select what to do. */
+- switch( (int) call_data -> data ) {
++ switch( (intptr_t) call_data -> data ) {
+
+ /* Next? */
+ case 0:
Index: pkgsrc/time/xdiary/patches/patch-xtools_xitXmStr.c
diff -u /dev/null pkgsrc/time/xdiary/patches/patch-xtools_xitXmStr.c:1.1
--- /dev/null Sun Jan 22 20:08:17 2023
+++ pkgsrc/time/xdiary/patches/patch-xtools_xitXmStr.c Sun Jan 22 20:08:17 2023
@@ -0,0 +1,17 @@
+$NetBSD: patch-xtools_xitXmStr.c,v 1.1 2023/01/22 20:08:17 vins Exp $
+
+Provide a definition of const.
+
+--- xtools/xitXmStr.c.orig 1995-02-18 14:11:37.000000000 +0000
++++ xtools/xitXmStr.c
+@@ -56,10 +56,6 @@ static char SCCSID[] = "@(#) Module: xit
+ -- Macro definitions
+ ----------------------------------------------------------------------------*/
+
+-#ifndef _POSIX_SOURCE
+-# define const
+-#endif
+-
+
+ /*----------------------------------------------------------------------------
+ -- Type declarations
Home |
Main Index |
Thread Index |
Old Index