diff options
Diffstat (limited to 'tools/testing/selftests/net/af_unix/unix_connect.c')
-rw-r--r-- | tools/testing/selftests/net/af_unix/unix_connect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/af_unix/unix_connect.c b/tools/testing/selftests/net/af_unix/unix_connect.c index 157e44ef7f37..d799fd8f5c7c 100644 --- a/tools/testing/selftests/net/af_unix/unix_connect.c +++ b/tools/testing/selftests/net/af_unix/unix_connect.c @@ -3,6 +3,7 @@ #define _GNU_SOURCE #include <sched.h> +#include <stddef.h> #include <stdio.h> #include <unistd.h> @@ -112,8 +113,6 @@ FIXTURE_TEARDOWN(unix_connect) remove("test"); } -#define offsetof(type, member) ((size_t)&((type *)0)->(member)) - TEST_F(unix_connect, test) { socklen_t addrlen; |