From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <3XfIfYQgKDtAwxzG7DwE2AA270.yA8071GF47E-z0H07EAGDy0IwD0.AD2@flex--abdulras.bounces.google.com> Received: from mail-qv1-xf49.google.com (mail-qv1-xf49.google.com [IPv6:2607:f8b0:4864:20::f49]) by sourceware.org (Postfix) with ESMTPS id 7A9EA384BC0E for ; Fri, 20 Aug 2021 18:20:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 7A9EA384BC0E Received: by mail-qv1-xf49.google.com with SMTP id iw1-20020a0562140f2100b0035f58985cecso7474997qvb.10 for ; Fri, 20 Aug 2021 11:20:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=u+uxR0wmJefYWbmGRg0Vd2VeGMvQa8I3T2E8Beqg7aI=; b=NWRJmgQR+/SZRtmWE9jV1ecyRthbhTmKZz5DwRuOzrf8od/7GOeikZGoi5xI2zeyBR SlTGMR5AfN9bmQ6a88KCQ+ReUbPwvePhuuHlcDEKcAixOYs3FLuR3sUzK0+l2oFrhokb s0CNECpcr3/CBUA4h7G6wHJmzYh+vg12nHYYkGNrW89ZE7IRgrs/ayICaxVeC0kro7W1 qqrnm5Gd/zQPZNy/PcpjmHTHiWoO2Ax4teSsWQ9tc8+fcsyF7RXZTEk1TyA5EjQfTIx0 n0Hsvb/BZS3AkEA+1hTdTlJPJ7El2n8nrrunWzUbN/Yl3I0HO3N0mHGRJ2DsdNzlJVi9 fUOw== X-Gm-Message-State: AOAM5316COEIDz5GxJ2GtvCJbU+pN9+H0j96yZ/fBZwL0tWtQB2a2xTE /3O8ev3GnQpwle4D2i/BpMhVUxgZ9cZzTjc0eZWPGX3KUZisHZVPi0xknEI7SbLqre47jxKUdsN immEXBpPMRxxb7xqDorPS62ouXm8ru5GHtIKVNCFrrMUuaPgjYdpZcUQzaOOMjtf12OOb4oool4 ZF X-Google-Smtp-Source: ABdhPJxBEen+f4hpMrrKQyMDE4EzsVdVu8P13B3XVjHyFsaKXEi8PLwrSbULwXZ2/W2t+Vq9oxl1gHd4+Nymhg== X-Received: from abdulras-llvm.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:219b]) (user=abdulras job=sendgmr) by 2002:a05:6214:570:: with SMTP id cj16mr21671291qvb.41.1629483613798; Fri, 20 Aug 2021 11:20:13 -0700 (PDT) Date: Fri, 20 Aug 2021 18:20:08 +0000 Message-Id: <20210820182008.2841402-1-abdulras@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.33.0.rc2.250.ged5fa647cd-goog Subject: [PATCH] lib: remove usage of `sys/cdefs.h` From: Saleem Abdulrasool To: elfutils-devel@sourceware.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-21.4 required=5.0 tests=BAYES_00, DKIMWL_WL_MED, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, USER_IN_DEF_DKIM_WL autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2021 18:20:15 -0000 This header is a BSD header that is also available in glibc. However, this is a not a standard C header and was used for `__CONCAT`. Because this is not a standard header, not all libc implementations provide the header. Remove the usage of the header and always use the previously fallback path. This is needed in order to build with musl. Signed-off-by: Saleem Abdulrasool --- lib/fixedsizehash.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/fixedsizehash.h b/lib/fixedsizehash.h index dac2a5f5..f333ad99 100644 --- a/lib/fixedsizehash.h +++ b/lib/fixedsizehash.h @@ -30,17 +30,12 @@ #include #include #include -#include #include -#ifdef __CONCAT -#define CONCAT(t1,t2) __CONCAT (t1,t2) -#else #define STROF(t2) t2 #define CONCAT_EXPANDED(t1,t2) t1 ## t2 #define CONCAT(t1,t2) CONCAT_EXPANDED(t1,t2) -#endif /* Before including this file the following macros must be defined: -- 2.33.0.rc2.250.ged5fa647cd-goog