na...@mips.inka.de (Christian Weisgerber) writes:

> Replace cuserid() with getlogin() and get rid of -lcompat.
> ok?

ok.  Are you doing other ports right now?  I have diffs for metamail,
elm, and gopher.

> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/games/late/Makefile,v
> retrieving revision 1.14
> diff -u -p -r1.14 Makefile
> --- Makefile  11 Mar 2013 11:07:39 -0000      1.14
> +++ Makefile  29 Nov 2013 21:53:47 -0000
> @@ -2,7 +2,7 @@
>  
>  COMMENT=     puzzle game resembling the arcade game Qix
>  DISTNAME=    late-0.1.0
> -REVISION=    0
> +REVISION=    1
>  EXTRACT_SUFX=        .tar.bz2
>  CATEGORIES=  games x11
>  MASTER_SITES=        ${MASTER_SITE_SOURCEFORGE:=late/}
> Index: patches/patch-configure
> ===================================================================
> RCS file: patches/patch-configure
> diff -N patches/patch-configure
> --- patches/patch-configure   19 Aug 2009 01:24:57 -0000      1.1
> +++ /dev/null 1 Jan 1970 00:00:00 -0000
> @@ -1,12 +0,0 @@
> -$OpenBSD: patch-configure,v 1.1 2009/08/19 01:24:57 jolan Exp $
> ---- configure.orig   Wed Aug 20 15:28:58 2003
> -+++ configure        Tue Aug 18 20:01:06 2009
> -@@ -5200,6 +5200,8 @@ _ACEOF
> - 
> - fi
> - 
> -+LIBS="-lcompat $LIBS"
> -+
> - 
> - # Finally create all the generated files
> -                                         ac_config_files="$ac_config_files 
> Makefile src/Makefile graphics/Makefile data/Makefile"
> Index: patches/patch-src_arch_cpp
> ===================================================================
> RCS file: patches/patch-src_arch_cpp
> diff -N patches/patch-src_arch_cpp
> --- /dev/null 1 Jan 1970 00:00:00 -0000
> +++ patches/patch-src_arch_cpp        29 Nov 2013 21:53:47 -0000
> @@ -0,0 +1,13 @@
> +$OpenBSD$
> +--- src/arch.cpp.orig        Sun Aug 17 14:27:48 2003
> ++++ src/arch.cpp     Fri Nov 29 22:47:37 2013
> +@@ -85,6 +85,7 @@ void conffile(char * output)
> + 
> + string username()
> + {
> +-  char temp[200];
> +-  return string(cuserid(temp));
> ++  char *temp;
> ++  temp = getlogin();
> ++  return string(temp == NULL ? "" : temp);
> + }

-- 
jca | PGP: 0x06A11494 / 61DB D9A0 00A4 67CF 2A90  8961 6191 8FBF 06A1 1494

Reply via email to