Set a progname to send with our command.
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-preferences.cpp
index b7e349011f73f6fbd5184ab904cc8a1e2234dd53..02974a7a912c93f9fd7bf5513561c7986bb5df52 100644 (file)
@@ -40,6 +40,8 @@
 #include <QStandardItemModel>
 #include <QVBoxLayout>
 
+#include <cerrno>
+
 #include "config.h"
 #include "dhcpcd-preferences.h"
 #include "dhcpcd-ipv4validator.h"
@@ -103,7 +105,7 @@ DhcpcdPreferences::DhcpcdPreferences(DhcpcdQt *parent)
        dnssl = new QLineEdit();
 #if defined(__NetBSD__) || (__OpenBSD__)
        dnssl->setMaxLength(1024);
-else
+#else
        dnssl->setMaxLength(256);
 #endif
        QFormLayout *ipLayout = new QFormLayout();