brewpanel/sockio.c

changeset 637
21e542c15832
parent 443
6b80a37fdf8d
equal deleted inserted replaced
636:80967361f257 637:21e542c15832
1 /***************************************************************************** 1 /*****************************************************************************
2 * Copyright (C) 2015 2 * Copyright (C) 2015-2024
3 * 3 *
4 * Michiel Broek <mbroek at mbse dot eu> 4 * Michiel Broek <mbroek at mbse dot eu>
5 * 5 *
6 * This file is part of the mbsePi-apps 6 * This file is part of the mbsePi-apps
7 * 7 *
24 #include "sdlgui.h" 24 #include "sdlgui.h"
25 #include "slcd.h" 25 #include "slcd.h"
26 #include "futil.h" 26 #include "futil.h"
27 #include "sockio.h" 27 #include "sockio.h"
28 28
29 #ifdef HAVE_SDL_SDL_H 29 #ifdef HAVE_SDL2_SDL_H
30 30
31 31
32 int sock = -1; /* Unix datagram socket */ 32 int sock = -1; /* Unix datagram socket */
33 struct sockaddr_in servaddr; /* Server socket address */ 33 struct sockaddr_in servaddr; /* Server socket address */
34 uint16_t keys = SLCD_KEYS; /* Pressed keys bits */ 34 uint16_t keys = SLCD_KEYS; /* Pressed keys bits */

mercurial