[libdispatch-changes] [180] trunk

source_changes at macosforge.org source_changes at macosforge.org
Mon Jan 4 05:51:52 PST 2010


Revision: 180
          http://trac.macosforge.org/projects/libdispatch/changeset/180
Author:   robert at fledge.watson.org
Date:     2010-01-04 05:51:50 -0800 (Mon, 04 Jan 2010)
Log Message:
-----------
Test for program_invocation_short_name using a declaration test not a
function test, as it's not a function.

Update copyrights.

Submitted by:	Mark Heily <mark at heily.com>

Modified Paths:
--------------
    trunk/configure.ac
    trunk/src/shims/getprogname.h

Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac	2010-01-04 13:41:04 UTC (rev 179)
+++ trunk/configure.ac	2010-01-04 13:51:50 UTC (rev 180)
@@ -192,7 +192,8 @@
 AC_CHECK_DECLS([FD_COPY], [], [], [[#include <sys/select.h>]])
 AC_CHECK_DECLS([SIGEMT], [], [], [[#include <signal.h>]])
 AC_CHECK_DECLS([VQ_UPDATE, VQ_VERYLOWDISK], [], [], [[#include <sys/mount.h>]])
-AC_CHECK_FUNCS([pthread_key_init_np pthread_main_np mach_absolute_time malloc_create_zone sysconf getprogname program_invocation_short_name])
+AC_CHECK_DECLS([program_invocation_short_name], [], [], [[#include <errno.h>]])
+AC_CHECK_FUNCS([pthread_key_init_np pthread_main_np mach_absolute_time malloc_create_zone sysconf getprogname])
 
 AC_CHECK_DECLS([POSIX_SPAWN_START_SUSPENDED],
   [have_posix_spawn_start_suspended=true],

Modified: trunk/src/shims/getprogname.h
===================================================================
--- trunk/src/shims/getprogname.h	2010-01-04 13:41:04 UTC (rev 179)
+++ trunk/src/shims/getprogname.h	2010-01-04 13:51:50 UTC (rev 180)
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 2009 Apple Inc. All rights reserved.
+ * Copyright (c) 2009-2010 Mark Heily <mark at heily.com>
+ * All rights reserved.
  *
  * @APPLE_APACHE_LICENSE_HEADER_START@
  *
@@ -25,7 +26,7 @@
 static inline char *
 getprogname(void)
 {
-# if HAVE_PROGRAM_INVOCATION_SHORT_NAME
+# if HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
     return program_invocation_short_name;
 # else
 #   error getprogname(3) is not available on this platform
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/libdispatch-changes/attachments/20100104/8ad77b9e/attachment.html>


More information about the libdispatch-changes mailing list