HardenedBSD/contrib/ntp/sntp/libpkgver/pkgver.h
Cy Schubert 276da39af9 MFV ntp-4.2.8p3 (r284990).
Approved by:	roberto, delphij
Security:	VuXML: 0d0f3050-1f69-11e5-9ba9-d050996490d0
Security:	http://bugs.ntp.org/show_bug.cgi?id=2853
Security:	https://www.kb.cert.org/vuls/id/668167
Security:	http://support.ntp.org/bin/view/Main/SecurityNotice#June_2015_NTP_Security_Vulnerabi
2015-07-05 15:42:16 +00:00

20 lines
704 B
C

/*
*
* Copyright 2015 Harlan Stenn. Used by NTP with permission.
*
* Author: Harlan Stenn <harlan@pfcs.com>
*
* Copying and distribution of this file, with or without modification, are
* permitted in any medium without royalty provided the copyright notice
* and this notice are preserved. This file is offered as-is, without any
* warranty.
*/
extern int colcomp(char *s1, char *s2);
#define PKG_VER_LT(x) (colcomp((x), PACKAGE_VERSION) < 0)
#define PKG_VER_LE(x) (colcomp((x), PACKAGE_VERSION) <= 0)
#define PKG_VER_EQ(x) (colcomp((x), PACKAGE_VERSION) == 0)
#define PKG_VER_GE(x) (colcomp((x), PACKAGE_VERSION) >= 0)
#define PKG_VER_GT(x) (colcomp((x), PACKAGE_VERSION) > 0)