From: Charles Briere <[email protected]> Signed-off-by: Charles Briere <[email protected]> --- src/common/compat/un.h | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/common/compat/un.h
diff --git a/src/common/compat/un.h b/src/common/compat/un.h new file mode 100644 index 0000000..6c5479d --- /dev/null +++ b/src/common/compat/un.h @@ -0,0 +1,37 @@ +/* + * Copyright (C) 2014 - Charles Briere <[email protected]> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License, version 2 only, + * as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef _COMPAT_UN_H +#define _COMPAT_UN_H + +# ifdef __ANDROID__ + +#include <sys/_types.h> + +#define UNIX_PATH_MAX 108 + +struct sockaddr_un { + __sa_family_t sun_family; + char sun_path[UNIX_PATH_MAX]; +}; +# else /* __ANDROID__ */ + +#include <sys/un.h> + +# endif + +#endif /* _COMPAT_UN_H */ -- 2.1.2 _______________________________________________ lttng-dev mailing list [email protected] http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
