From 8c826de0fd9625ccebb017a005f2b7fdcc66631d Mon Sep 17 00:00:00 2001 From: Kazuki Yamaguchi Date: Fri, 21 Apr 2017 11:50:14 +0900 Subject: ext/socket/addrinfo.h: don't define offsetof() macro It's part of C89. Let's not define ourselves, as Ruby will not compile anyway on a system without offsetof(). --- ext/socket/addrinfo.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 8601d99a77..8163dc9c95 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -171,11 +171,4 @@ const #endif char *gai_strerror(int); -/* In case there is no definition of offsetof() provided - though any proper -Standard C system should have one. */ - -#ifndef offsetof -#define offsetof(p_type,field) ((size_t)&(((p_type *)0)->field)) -#endif - #endif -- cgit v1.2.3