pkgsrc/mail/imap-uw/patches/patch-bi
gutteridge 1ac2d39fda imap-uw: fix non-BSD build breakages from previous change set
Redo some of the patches from the previous change set (PR pkg/56645) so
that they reflect the upstream project's method for including its
version of portable_utime(), rather than what was done previously,
which broke non-BSD builds, e.g., on Solaris derivates:

ld: fatal: symbol 'portable_utime' is multiply-defined:
	(file .libs/osdep.o type=FUNC; file .libs/utime.o type=FUNC);
ld: fatal: file processing errors. No output written to .libs/libc-client.so.5.0.0

Compile tested on NetBSD 9.2_STABLE, NetBSD 9.99.93, OmniOS r151038,
and Fedora Linux 34.
2022-01-30 04:00:42 +00:00

21 lines
482 B
Text

$NetBSD: patch-bi,v 1.2 2022/01/30 04:00:42 gutteridge Exp $
Enable use of portable_utime() on BSDs.
--- src/osdep/unix/os_bsi.h.orig 2011-07-23 00:20:11.000000000 +0000
+++ src/osdep/unix/os_bsi.h
@@ -34,6 +34,7 @@
#include <fcntl.h>
#include <syslog.h>
#include <sys/file.h>
+#include <utime.h>
#include "env_unix.h"
@@ -41,3 +42,6 @@
#include "ftl.h"
#include "nl.h"
#include "tcp.h"
+
+#define utime portable_utime
+int portable_utime (char *file,time_t timep[2]);