From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10686 Path: news.gmane.org!.POSTED!not-for-mail From: "Dmitrij D. Czarkoff" Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] Define __RES to 19960801 Date: Sat, 29 Oct 2016 20:58:23 +0200 Message-ID: <20161029185824.53336-1-czarkoff@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1477771812 14925 195.159.176.226 (29 Oct 2016 20:10:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 29 Oct 2016 20:10:12 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10698-gllmg-musl=m.gmane.org@lists.openwall.com Sat Oct 29 22:10:08 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1c0Zwd-0008Bn-F6 for gllmg-musl@m.gmane.org; Sat, 29 Oct 2016 22:09:35 +0200 Original-Received: (qmail 1828 invoked by uid 550); 29 Oct 2016 20:09:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 23957 invoked from network); 29 Oct 2016 19:00:57 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=J10ABs68nU29/u67bhOfKMt0VoRNb651sb4XTAdZLW8=; b=gB9BYU13LhcueCw6BKXPvpHQknKpqkBIqIXvNq5PuXcL+aRQ3Ril3ksAPvz4HegFzY LhTuwBLDPZOMD5UyKTnWhgfng3IBgaXnjkel3yEp/cxo2nwLiQ1Q/uQZUMOq+B+IKm7n SsycWRFw5pvaulYcDuxJt02pSO8xjou7CBOJd9/Fsw74JhjRHD5Zpl0W5P9TXOk+QGP0 Of4YQZB09ss6IodlVYKBmpSA/CeYciX0ky3I2FheEsZmnRyuY8XOWIUUm0YUeafYY0mz Uk2Z3ji1aWb+jSAbFYEnY5dGbKhxGZpg1OdIjkCeA1lvQa1lAI9exeYG0unRdDV971ER G+jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=J10ABs68nU29/u67bhOfKMt0VoRNb651sb4XTAdZLW8=; b=fpQ2+W8KycFRVKCGatxXcnuXzn0zQrxphn28mv79lwhNRejhti0HAlMvTOu9NGLI0e mz/xTDGeBUjZGMc3F7yrCtwqFUPGjJDw+qBgSBNUSr+khFK9+FWICfYoJCAdEhBP7w4F ft7Cas+wlL3cIcticRdwfrUINF8wTCRhZqM3q7Ju7CRbK4hXwcN07cKvGAgialzelp1O L+ESk3ZIPDDEPd/xBAuTSxjCopILUts0dPJaO/inEn8Ya2WIHvzEuqIxMo/jh4T4lR2K U6bD/Pmn4KoIM0Wgrhtvd3lTg6BTvq8BHwXvojEvDh2/Ovxx9324k+NkvEMHZkQDCf9x RpjQ== X-Gm-Message-State: ABUngve71JgrIuoVkxFuYoWOmqQAA4DkTaiTpARVAuiMJr5YfXvDDXq95Chznc8CMcXvYw== X-Received: by 10.28.133.202 with SMTP id h193mr3730091wmd.85.1477767645973; Sat, 29 Oct 2016 12:00:45 -0700 (PDT) X-Mailer: git-send-email 2.10.1 Xref: news.gmane.org gmane.linux.lib.musl.general:10686 Archived-At: Hi! The BIND resolver API provided by musl is versioned with __RES macro, which is defined to a date the API revision was released. Musl does not provide res_ninit() and other functions that take resolver state as an argument. In order to allow applications detect the lack of these functions with preprocessor I suggest to set __RES to the version of the last BIND release which did not include them - BIND 8.1.2. As far as I can tell, all newer BIND features that musl supports are presented as macros and thus can be tested by preprocessor as well. -- Dmitrij D. Czarkoff P.S.: I am not on the list, so please CC me if my input is desired.