summaryrefslogtreecommitdiff
path: root/src/cairo-font-face.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-03-12 17:52:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-03-12 17:52:16 +0000
commit222eb6f1400ab7a51632cbc18b1526664e50c2e4 (patch)
tree9f18285917922508e0476ed54a267fd9d9555dc5 /src/cairo-font-face.c
parent2d9203c349ffba863368e85567b2e89443d51746 (diff)
downloadcairo-222eb6f1400ab7a51632cbc18b1526664e50c2e4.tar.gz
Define _BSD_SOURCE to enable prototypes for strdup, snprintf.
strdup() and friends require at least _BSD_SOURCE or _XOPEN_SOURCE >= 500 to be defined for the prototypes to be included. For the time being, add the define to each source file that requires one of the BSD functions.
Diffstat (limited to 'src/cairo-font-face.c')
-rw-r--r--src/cairo-font-face.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cairo-font-face.c b/src/cairo-font-face.c
index 20771209a..c7f0a44bf 100644
--- a/src/cairo-font-face.c
+++ b/src/cairo-font-face.c
@@ -38,6 +38,7 @@
* Owen Taylor <otaylor@redhat.com>
*/
+#define _BSD_SOURCE /* for strdup() */
#include "cairoint.h"
/* Forward declare so we can use it as an arbitrary backend for