From 3c98a4251aee21e45ea1e215383e7c733e6be244 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Fri, 29 Jun 2012 01:01:39 +0200 Subject: [PATCH] libvncserver: improved cross-compiling by assuming the libc provides gettimeofday() --- x11/libvncserver/libvncserver.conf | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/x11/libvncserver/libvncserver.conf b/x11/libvncserver/libvncserver.conf index 2c107293f..4b2c48b91 100644 --- a/x11/libvncserver/libvncserver.conf +++ b/x11/libvncserver/libvncserver.conf @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../libvncserver/libvncserver.conf -# Copyright (C) 2006 The OpenSDE Project +# Copyright (C) 2006 - 2012 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -14,3 +14,9 @@ # check if we should build shared libraries [ "SDECFG_STATIC" != "1" ] && var_append confopt ' ' "--enable-shared" + +# help to cross-compile +if atstage cross; then + # assume we have gettimeofday() + var_append configcache ' ' "ac_cv_func_gettimeofday=yes" +fi