diff options
author | Christian Grothoff <christian@grothoff.org> | 2017-02-21 20:20:33 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2017-02-21 20:20:33 +0100 |
commit | 647d88d649c267220feb8b5f53ec3e96359a72fc (patch) | |
tree | f0e78fbaed43f946b9e49ab42942303697584fa6 /configure.ac | |
parent | 0c7478479c31e75392774b17d850c4325e4ff9a8 (diff) | |
download | gnunet-647d88d649c267220feb8b5f53ec3e96359a72fc.tar.gz gnunet-647d88d649c267220feb8b5f53ec3e96359a72fc.zip |
fix sun_len issue (#4816) by adding test and fixing typo
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index b31d0a6c7..7f9cc2197 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1032,6 +1032,16 @@ AC_CHECK_MEMBER([struct sockaddr_in.sin_len], | |||
1032 | #include <netinet/in.h> | 1032 | #include <netinet/in.h> |
1033 | ]) | 1033 | ]) |
1034 | 1034 | ||
1035 | AC_CHECK_MEMBER([struct sockaddr_un.sun_len], | ||
1036 | [ AC_DEFINE(HAVE_SOCKADDR_UN_SUN_LEN, 1, [Do we have sockaddr_un.sun_len?]) | ||
1037 | ], | ||
1038 | [], | ||
1039 | [ | ||
1040 | #include <sys/types.h> | ||
1041 | #include <sys/socket.h> | ||
1042 | #include <sys/un.h> | ||
1043 | ]) | ||
1044 | |||
1035 | 1045 | ||
1036 | 1046 | ||
1037 | # Checks for library functions. | 1047 | # Checks for library functions. |