=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/main.c,v retrieving revision 1.85 retrieving revision 1.86 diff -u -r1.85 -r1.86 --- src/usr.bin/mg/main.c 2018/12/13 14:59:16 1.85 +++ src/usr.bin/mg/main.c 2019/06/10 06:52:44 1.86 @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.85 2018/12/13 14:59:16 lum Exp $ */ +/* $OpenBSD: main.c,v 1.86 2019/06/10 06:52:44 lum Exp $ */ /* This file is in the public domain. */ @@ -21,6 +21,10 @@ #include "funmap.h" #include "macro.h" +#ifdef MGLOG +#include "log.h" +#endif + int thisflag; /* flags, this command */ int lastflag; /* flags, last command */ int curgoal; /* goal column */ @@ -86,6 +90,11 @@ maps_init(); /* Keymaps and modes. */ funmap_init(); /* Functions. */ + +#ifdef MGLOG + if (!mgloginit()) + errx(1, "Unable to create logging environment."); +#endif /* * This is where we initialize standalone extensions that should