svn commit: trunk/uClibc/libutil
aldot at uclibc.org
aldot at uclibc.org
Fri May 30 17:58:47 UTC 2008
Author: aldot
Date: 2008-05-30 10:58:47 -0700 (Fri, 30 May 2008)
New Revision: 22125
Log:
- Avoid warning about undefined preprocessor token. No obj-code changes.
Modified:
trunk/uClibc/libutil/logout.c
trunk/uClibc/libutil/logwtmp.c
Changeset:
Modified: trunk/uClibc/libutil/logout.c
===================================================================
--- trunk/uClibc/libutil/logout.c 2008-05-30 15:25:40 UTC (rev 22124)
+++ trunk/uClibc/libutil/logout.c 2008-05-30 17:58:47 UTC (rev 22125)
@@ -51,7 +51,7 @@
memset (ut->ut_host, 0, sizeof ut->ut_host);
#endif
#if _HAVE_UT_TV - 0
-# if __WORDSIZE_COMPAT32 == 0
+# if !defined __WORDSIZE_COMPAT32 || __WORDSIZE_COMPAT32 == 0
gettimeofday (&ut->ut_tv, NULL);
# else
{
Modified: trunk/uClibc/libutil/logwtmp.c
===================================================================
--- trunk/uClibc/libutil/logwtmp.c 2008-05-30 15:25:40 UTC (rev 22124)
+++ trunk/uClibc/libutil/logwtmp.c 2008-05-30 17:58:47 UTC (rev 22125)
@@ -24,7 +24,7 @@
strncpy(lutmp.ut_line, line, sizeof(lutmp.ut_line)-1);
strncpy(lutmp.ut_name, name, sizeof(lutmp.ut_name)-1);
strncpy(lutmp.ut_host, host, sizeof(lutmp.ut_host)-1);
-#if __WORDSIZE_COMPAT32 == 0
+#if !defined __WORDSIZE_COMPAT32 || __WORDSIZE_COMPAT32 == 0
gettimeofday(&(lutmp.ut_tv), NULL);
#else
{
More information about the uClibc-cvs
mailing list