kwo pushed a commit to branch master.

http://git.enlightenment.org/e16/e16.git/commit/?id=c423cd13f6b7b94588dccfc755055381c9d95928

commit c423cd13f6b7b94588dccfc755055381c9d95928
Author: Kim Woelders <[email protected]>
Date:   Tue Jul 30 17:30:02 2019 +0200

    Include potentially missing sys/select.h
    
    Patch by Ingo Feinerer <[email protected]>:
    
    the compilation of E16 fails on OpenBSD with following error message:
    
    enlightenment-1.0.20/e16-1.0.20/eesh/main.c:90:4: error: use of undeclared 
identifier 'fd_set'
       fd_set              fd;
       ^
    
    enlightenment-1.0.20/e16-1.0.20/eesh/main.c:227:2: warning: implicit 
declaration of function 'FD_ZERO' is invalid in C99 
[-Wimplicit-function-declaration]
            FD_ZERO(&fd);
            ^
    
    This is because FD_SET lives in the sys/select.h header in OpenBSD.
    
    This seems to be the case on newer Linux systems as well:
    
    https://linux.die.net/man/3/fd_set
    
     /* According to POSIX.1-2001 */
     #include <sys/select.h>
---
 eesh/main.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/eesh/main.c b/eesh/main.c
index a44acecf..47b91def 100644
--- a/eesh/main.c
+++ b/eesh/main.c
@@ -21,6 +21,7 @@
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  */
+#include <sys/select.h>
 #include "E.h"
 
 /* Global vars */

-- 


Reply via email to