diff options
author | Roel Janssen <roel@gnu.org> | 2018-04-04 14:54:02 +0200 |
---|---|---|
committer | Roel Janssen <roel@gnu.org> | 2018-04-04 14:54:02 +0200 |
commit | ea09f99f7fcdde57589f83cfc66e813b084013f9 (patch) | |
tree | 97e2bc98109468e1d27542ee6d1272b290a0d0d6 /gnu/packages/patches/4store-unset-preprocessor-directive.patch | |
parent | b028a9830c5652c1c1782655c4cf268f4de7cc89 (diff) | |
download | gnu-guix-ea09f99f7fcdde57589f83cfc66e813b084013f9.tar gnu-guix-ea09f99f7fcdde57589f83cfc66e813b084013f9.tar.gz |
gnu: 4store: Remove preprocessor directive.
* gnu/packages/databases.scm (4store): Add patch to remove preprocessor
directive.
* gnu/packages/patches/4store-unset-preprocessor-directive.patch: New file.
* gnu/local.mk: Register patch.
Diffstat (limited to 'gnu/packages/patches/4store-unset-preprocessor-directive.patch')
-rw-r--r-- | gnu/packages/patches/4store-unset-preprocessor-directive.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/4store-unset-preprocessor-directive.patch b/gnu/packages/patches/4store-unset-preprocessor-directive.patch new file mode 100644 index 0000000000..c4b1d6eda4 --- /dev/null +++ b/gnu/packages/patches/4store-unset-preprocessor-directive.patch @@ -0,0 +1,16 @@ +This patch removes the _XOPEN_SOURCE preprocessor directive as it does not seem to be needed. +Setting it removes the definition of strdup, which is used in filter-datatypes.c. + +Patch by Roel Janssen <roel@gnu.org> +*** a/src/frontend/filter-datatypes.c 1970-01-01 01:00:00.000000000 +0100 +--- b/src/frontend/filter-datatypes.c 2018-04-03 17:39:23.177905592 +0200 +*************** +*** 18,24 **** + * Copyright (C) 2006 Steve Harris for Garlik + */ + +- #define _XOPEN_SOURCE + #include <stdlib.h> + #include <string.h> + #include <math.h> +--- 18,23 ---- |