hal/tools lshal.c,1.19,1.20
Artem Kachitchkine
artem at kemper.freedesktop.org
Sat Mar 4 16:41:52 PST 2006
Update of /cvs/hal/hal/tools
In directory kemper:/tmp/cvs-serv7678/tools
Modified Files:
lshal.c
Log Message:
2006-03-04 Artem Kachitchkine <artem.kachitchkin at sun.com>
* configure.in: check for getgrouplist() and use the local version
if not provided by the system.
* hald/hald_dbus.c: (hald_exec_method_free_mi),
(hald_exec_method_do_invocation), (hald_exec_method): stdin is
a macro in Solaris, can't use to name struct members.
* hald/logger.h: if using Sun compiler, define __FUNCTION__
through __func__.
* libhal-policy/Makefile.am: posix thread flags required on Solaris
for getgrgid_r() to have 5 arguments (otherwise it has 4).
* libhal-policy/libhal-policy.c: (afp_process_elem),
(libhal_policy_util_uid_to_name), (libhal_policy_element_set_uid),
(libhal_policy_element_set_gid), (libhal_policy_element_get_uid),
(libhal_policy_element_get_gid), (libhal_policy_element_dump):
anonymous unions are not supported in C99, fixed LibHalPolicyElement.
(getgrouplist): check for getgrouplist() and use the local version
if not provided by the system.
* tools/lshal.c: if using Sun compiler, define __FUNCTION__
through __func__.
Index: lshal.c
===================================================================
RCS file: /cvs/hal/hal/tools/lshal.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- lshal.c 13 Feb 2006 14:35:31 -0000 1.19
+++ lshal.c 5 Mar 2006 00:41:50 -0000 1.20
@@ -40,6 +40,10 @@
#include <dbus/dbus-glib.h>
#include <libhal/libhal.h>
+#ifdef __SUNPRO_C
+#define __FUNCTION__ __func__
+#endif
+
/**
* @defgroup HalLsHal List HAL devices
* @ingroup HalMisc
More information about the hal-commit
mailing list