source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: strcasestr() wants _GNU_SOURCE on Linux
Date: Tue, 5 Aug 2014 12:03:03 -0400 (EDT)	[thread overview]
Message-ID: <201408051603.s75G33nu025740@krisdoz.my.domain> (raw)

Log Message:
-----------
strcasestr() wants _GNU_SOURCE on Linux

Modified Files:
--------------
    mdocml:
        config.h.pre
        test-strcasestr.c

Revision Data
-------------
Index: config.h.pre
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/config.h.pre,v
retrieving revision 1.3
retrieving revision 1.4
diff -Lconfig.h.pre -Lconfig.h.pre -u -p -r1.3 -r1.4
--- config.h.pre
+++ config.h.pre
@@ -2,7 +2,7 @@
 #define	MANDOC_CONFIG_H
 
 #if defined(__linux__) || defined(__MINT__)
-# define _GNU_SOURCE /* strptime(), getsubopt() */
+# define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */
 #endif
 
 #include <sys/types.h>
Index: test-strcasestr.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/test-strcasestr.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -Ltest-strcasestr.c -Ltest-strcasestr.c -u -p -r1.1 -r1.2
--- test-strcasestr.c
+++ test-strcasestr.c
@@ -1,3 +1,7 @@
+#if defined(__linux__) || defined(__MINT__)
+# define _GNU_SOURCE /* strcasestr() */
+#endif
+
 #include <string.h>
 
 int
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2014-08-05 16:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201408051603.s75G33nu025740@krisdoz.my.domain \
    --to=schwarze@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).