summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian A. Lloyd <brian.lloyd@familyhonor.net>2014-10-01 12:35:18 +0300
committerMartin-Éric Racine <martin-eric.racine@iki.fi>2014-10-01 12:35:18 +0300
commit621d946e56efac2c779b83b1a5c6b645169c4ebd (patch)
tree62c3edfcaf7dd791156cf9eaa32e2c7b20f9387e
parentefb42fc933a4198645691a94fe350f361cbf55a8 (diff)
Add config.h include to src/lx_memory.c
The src/lx_memory.c file uses the xf86.h header file. This file must have HAVE_STRNDUP defined before calling it when the building platform has a strndup function. When using config.h, this file doesn't have that define and so fails to compile. The attached patch adds the conditional config.h to this file so it may compile on the affected platforms. The patch is trivial and may be included and used under whatever licensing desired. Closes: Free Desktop Bug #84541 Signed-off-by: Brian A. Lloyd <brian.lloyd@familyhonor.net>
-rw-r--r--src/lx_memory.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lx_memory.c b/src/lx_memory.c
index f26d280..992446f 100644
--- a/src/lx_memory.c
+++ b/src/lx_memory.c
@@ -22,6 +22,9 @@
* contributors may be used to endorse or promote products derived from this
* software without specific prior written permission.
*/
+#if HAVE_CONFIG_H
+#include "config.h"
+#endif
#include "xf86.h"
#include "geode.h"