mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gio: UNIX_PATH_MAX may be defined.
On an Android build, API 22, at least, I got a: > warning: "UNIX_PATH_MAX" redefined We were currently defining it as: > #define UNIX_PATH_MAX sizeof (((struct sockaddr_un *) 0)->sun_path) Whereas Android's headers define this variable of sockaddr_un as: > char sun_path[UNIX_PATH_MAX]; So by definition, we will still get the right result in the end by just using the original value of UNIX_PATH_MAX.
This commit is contained in:
parent
631035342d
commit
f96417e470
@ -66,7 +66,9 @@ enum
|
||||
PROP_ADDRESS_TYPE
|
||||
};
|
||||
|
||||
#ifndef UNIX_PATH_MAX
|
||||
#define UNIX_PATH_MAX sizeof (((struct sockaddr_un *) 0)->sun_path)
|
||||
#endif
|
||||
|
||||
struct _GUnixSocketAddressPrivate
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user