Blame SOURCES/libmemcached-awesome-config.patch

859e4c
From 8b3a224e03457bfab11f0974114f28b2ba7a568f Mon Sep 17 00:00:00 2001
859e4c
From: Remi Collet <remi@remirepo.net>
859e4c
Date: Mon, 26 Jul 2021 10:02:24 +0200
859e4c
Subject: [PATCH] Fix #116 add configure.h for libmemcachedprotocol
859e4c
859e4c
---
859e4c
 .../libmemcachedprotocol-0.0/CMakeLists.txt   |  1 +
859e4c
 .../libmemcachedprotocol-0.0/configure.h.in   | 19 +++++++++++++++++++
859e4c
 include/libmemcachedprotocol-0.0/handler.h    |  1 +
859e4c
 3 files changed, 21 insertions(+)
859e4c
 create mode 100644 include/libmemcachedprotocol-0.0/configure.h.in
859e4c
859e4c
diff --git a/include/libmemcachedprotocol-0.0/CMakeLists.txt b/include/libmemcachedprotocol-0.0/CMakeLists.txt
859e4c
index 6d4fb220..71b4f260 100644
859e4c
--- a/include/libmemcachedprotocol-0.0/CMakeLists.txt
859e4c
+++ b/include/libmemcachedprotocol-0.0/CMakeLists.txt
859e4c
@@ -2,6 +2,7 @@
859e4c
 install_public_headers(
859e4c
         libmemcachedprotocol-0.0
859e4c
 
859e4c
+        @configure.h
859e4c
         binary.h
859e4c
         callback.h
859e4c
         handler.h
859e4c
diff --git a/include/libmemcachedprotocol-0.0/configure.h.in b/include/libmemcachedprotocol-0.0/configure.h.in
859e4c
new file mode 100644
859e4c
index 00000000..f4d77c28
859e4c
--- /dev/null
859e4c
+++ b/include/libmemcachedprotocol-0.0/configure.h.in
859e4c
@@ -0,0 +1,19 @@
859e4c
+/*
859e4c
+    +--------------------------------------------------------------------+
859e4c
+    | libmemcached-awesome - C/C++ Client Library for memcached          |
859e4c
+    +--------------------------------------------------------------------+
859e4c
+    | Redistribution and use in source and binary forms, with or without |
859e4c
+    | modification, are permitted under the terms of the BSD license.    |
859e4c
+    | You should have received a copy of the license in a bundled file   |
859e4c
+    | named LICENSE; in case you did not receive a copy you can review   |
859e4c
+    | the terms online at: https://opensource.org/licenses/BSD-3-Clause  |
859e4c
+    +--------------------------------------------------------------------+
859e4c
+    | Copyright (c) 2006-2014 Brian Aker   https://datadifferential.com/ |
859e4c
+    | Copyright (c) 2020-2021 Michael Wallner        https://awesome.co/ |
859e4c
+    +--------------------------------------------------------------------+
859e4c
+*/
859e4c
+
859e4c
+#pragma once
859e4c
+
859e4c
+#cmakedefine HAVE_SSIZE_T 1
859e4c
+
859e4c
diff --git a/include/libmemcachedprotocol-0.0/handler.h b/include/libmemcachedprotocol-0.0/handler.h
859e4c
index 04e47acf..3b576d02 100644
859e4c
--- a/include/libmemcachedprotocol-0.0/handler.h
859e4c
+++ b/include/libmemcachedprotocol-0.0/handler.h
859e4c
@@ -15,6 +15,7 @@
859e4c
 
859e4c
 #pragma once
859e4c
 
859e4c
+#include "libmemcachedprotocol-0.0/configure.h"
859e4c
 #include <sys/types.h>
859e4c
 #ifndef HAVE_SSIZE_T
859e4c
 typedef long int ssize_t;
859e4c
-- 
859e4c
2.31.1
859e4c