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:
Jehan 2018-06-09 01:24:08 +02:00
parent 631035342d
commit f96417e470

View File

@ -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
{