From 97f2d3a350da038fa9d11a65384a82538f0415fb Mon Sep 17 00:00:00 2001
From: fbrosson <fbrosson@localhost>
Date: Wed, 17 Jan 2018 22:03:45 +0000
Subject: Do not use __GNUC_PATCHLEVEL__ if it's not defined.


diff --git a/src/ksba.h b/src/ksba.h
index 955dc06..b052783 100644
--- a/src/ksba.h
+++ b/src/ksba.h
@@ -45,9 +45,14 @@ extern "C" {
 
 /* Check for compiler features.  */
 #ifdef __GNUC__
+#ifdef __GNUC_PATCHLEVEL__
 #define _KSBA_GCC_VERSION (__GNUC__ * 10000 \
                             + __GNUC_MINOR__ * 100 \
                             + __GNUC_PATCHLEVEL__)
+#else
+#define _KSBA_GCC_VERSION (__GNUC__ * 10000 \
+                            + __GNUC_MINOR__ * 100)
+#endif
 #if _KSBA_GCC_VERSION > 30100
 #define _KSBA_DEPRECATED	__attribute__ ((__deprecated__))
 #endif
-- 
2.15.1

