vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a18b87b31f16264ccd3910d146acbddc350536c0 parent b126b5d153a9f5883efa2f776f2b674c7ab99324 Author: Christian Hesse <mail@eworm.de> Date: Fri, 19 Sep 2014 13:54:45 +0200 This fixes warning with latest glibc (>= 2.19.90), which deprecated _BSD_SOURCE warning: _BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE Commit 8cf8f1eb31f3d96c85d8dc0113aebf19fd292ad8 just fixed one of three cases. Fix the remaining. Diffstat:
| M | editor.c | | | 1 | + |
| M | text.c | | | 1 | + |
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/editor.c b/editor.c @@ -1,3 +1,4 @@ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #include <stdlib.h> #include <string.h> diff --git a/text.c b/text.c @@ -13,6 +13,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#define _DEFAULT_SOURCE #define _BSD_SOURCE #include <unistd.h> #include <stdio.h>