We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2499602 commit cc6e283Copy full SHA for cc6e283
libvncserver/websockets.c
@@ -34,12 +34,6 @@
34
/* errno */
35
#include <errno.h>
36
37
-#ifdef LIBVNCSERVER_HAVE_ENDIAN_H
38
-#include <endian.h>
39
-#elif LIBVNCSERVER_HAVE_SYS_ENDIAN_H
40
-#include <sys/endian.h>
41
-#endif
42
-
43
#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
44
#include <sys/types.h>
45
#endif
libvncserver/ws_decode.h
@@ -15,6 +15,12 @@
15
16
#else
17
18
+#ifdef LIBVNCSERVER_HAVE_ENDIAN_H
19
+#include <endian.h>
20
+#elif LIBVNCSERVER_HAVE_SYS_ENDIAN_H
21
+#include <sys/endian.h>
22
+#endif
23
+
24
#define WS_NTOH64(n) htobe64(n)
25
#define WS_NTOH32(n) htobe32(n)
26
#define WS_NTOH16(n) htobe16(n)
0 commit comments