From: Michal Sojka Date: Wed, 21 Sep 2016 13:38:36 +0000 (+0200) Subject: Silence warning about deprecation of _BSD_SOURCE X-Git-Tag: 20160921~4 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/sojka/sterm.git/commitdiff_plain/3ca31e8f487ebbc0c0c6b1376e51bb20c292ea64 Silence warning about deprecation of _BSD_SOURCE Adding _DEFAULT_SOURCE and keeping _BSD_SOURCE is recommended in feature_test_macros(7). --- diff --git a/sterm.c b/sterm.c index 3e1a573..c5fc0aa 100644 --- a/sterm.c +++ b/sterm.c @@ -1,7 +1,7 @@ /* * Simple serial terminal * - * Copyright 2014, 2015 Michal Sojka + * Copyright 2014, 2015, 2016 Michal Sojka * * This program is free software: you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -30,6 +30,7 @@ */ #define _BSD_SOURCE +#define _DEFAULT_SOURCE #include #include #include