Skip to content

Commit 9c44c7a

Browse files
authored
fix compiler complain about strptime
from @facchinm : compilation fails due to `/home/travis/Arduino/libraries/MKRGSM/src/GSM.cpp:340:7: error: 'strptime' was not declared in this scope` which is in fact fixed by `_XOPEN_SOURCE patch`
1 parent ba82874 commit 9c44c7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NB.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
License along with this library; if not, write to the Free Software
1717
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
1818
*/
19-
19+
#define _XOPEN_SOURCE
2020
#include <time.h>
2121

2222
#include "Modem.h"

0 commit comments

Comments
 (0)