[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r19604 - in gnunet/src: include util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r19604 - in gnunet/src: include util |
Date: |
Wed, 1 Feb 2012 18:11:35 +0100 |
Author: grothoff
Date: 2012-02-01 18:11:35 +0100 (Wed, 01 Feb 2012)
New Revision: 19604
Modified:
gnunet/src/include/gnunet_common.h
gnunet/src/util/os_installation.c
Log:
-barato's byte order patch, might even help with #2130
Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h 2012-02-01 17:08:21 UTC (rev 19603)
+++ gnunet/src/include/gnunet_common.h 2012-02-01 17:11:35 UTC (rev 19604)
@@ -66,22 +66,34 @@
#define GNUNET_MAX(a,b) (((a) > (b)) ? (a) : (b))
-/* some systems use one underscore only... */
+/* some systems use one underscore only, and mingw uses no underscore... */
#ifndef __BYTE_ORDER
#ifdef _BYTE_ORDER
#define __BYTE_ORDER _BYTE_ORDER
+#else
+#ifdef BYTE_ORDER
+#define __BYTE_ORDER BYTE_ORDER
#endif
#endif
+#endif
#ifndef __BIG_ENDIAN
#ifdef _BIG_ENDIAN
#define __BIG_ENDIAN _BIG_ENDIAN
+#else
+#ifdef BIG_ENDIAN
+#define __BIG_ENDIAN BIG_ENDIAN
#endif
#endif
+#endif
#ifndef __LITTLE_ENDIAN
#ifdef _LITTLE_ENDIAN
#define __LITTLE_ENDIAN _LITTLE_ENDIAN
+#else
+#ifdef LITTLE_ENDIAN
+#define __LITTLE_ENDIAN LITTLE_ENDIAN
#endif
#endif
+#endif
/**
* Endian operations
Modified: gnunet/src/util/os_installation.c
===================================================================
--- gnunet/src/util/os_installation.c 2012-02-01 17:08:21 UTC (rev 19603)
+++ gnunet/src/util/os_installation.c 2012-02-01 17:11:35 UTC (rev 19604)
@@ -494,12 +494,14 @@
GNUNET_free (p);
return GNUNET_SYSERR;
}
+#ifndef MINGW
if (0 == getuid ())
{
/* as we run as root, we don't insist on SUID */
GNUNET_free (p);
return GNUNET_OK;
}
+#endif
if (0 != STAT (p, &statbuf))
{
LOG (GNUNET_ERROR_TYPE_WARNING, _("stat (%s) failed: %s\n"), p,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r19604 - in gnunet/src: include util,
gnunet <=