chiark / gitweb /
remove unused includes
[elogind.git] / src / resolve / resolved-manager.c
index d5c1bf0fbda2c6dc695a890b6d3dc5c8cf1e3863..167bea39b372849c07ea76666134f87c32b87b9d 100644 (file)
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
  ***/
 
-#include <arpa/inet.h>
 #include <resolv.h>
-#include <net/if.h>
 #include <sys/ioctl.h>
-#include <sys/poll.h>
+#include <poll.h>
 #include <netinet/in.h>
 
 #include "rtnl-util.h"
-#include "event-util.h"
-#include "network-util.h"
 #include "network-internal.h"
-#include "conf-parser.h"
 #include "socket-util.h"
 #include "af-list.h"
 #include "utf8.h"
@@ -892,7 +887,7 @@ int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret) {
         mh.msg_control = &control;
         mh.msg_controllen = sizeof(control);
 
-        l = recvmsg(fd, &mh, MSG_CMSG_CLOEXEC);
+        l = recvmsg(fd, &mh, 0);
         if (l < 0) {
                 if (errno == EAGAIN || errno == EINTR)
                         return 0;