mcallegari / qlcplus

Q Light Controller Plus (QLC+) is a free and cross-platform software to control DMX or analog lighting systems like moving heads, dimmers, scanners etc. This project is a fork of the great QLC project written by Heikki Junnila that aims to continue the QLC development and to introduce new features.
Apache License 2.0
921 stars 349 forks source link

4.13.0: error: use of undeclared identifier 'AF_INET' #1529

Closed yurivict closed 4 months ago

yurivict commented 4 months ago

Describe the bug

webaccessnetwork.cpp:322:31: error: use of undeclared identifier 'AF_INET'
  322 |                 if (inet_pton(AF_INET, cmdList.at(5).toUtf8().constData(), &intNetMask) == 0)
      |                               ^
1 error generated.

#include <sys/socket.h> is required for AF_INET which isn't present in webaccessnetwork.cpp.

Desktop (please complete the following information):