]> git.ozlabs.org Git - petitboot/blobdiff - ui/ncurses/nc-cui.c
discover: Bring down configured interfaces on discover server exit.
[petitboot] / ui / ncurses / nc-cui.c
index df727bc7af56092264a1f6281c595ba5be6a972c..e3422734ebd06d83ec30415b8012c89beb54435a 100644 (file)
@@ -16,9 +16,9 @@
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
+#if defined(HAVE_CONFIG_H)
 #include "config.h"
-
-#define _GNU_SOURCE
+#endif
 
 #include <assert.h>
 #include <errno.h>
@@ -296,6 +296,8 @@ static int cui_process_key(void *arg)
        for (;;) {
                int c = getch();
 
+               pb_debug("%s: got key %d\n", __func__, c);
+
                if (c == ERR)
                        break;