Skip to content

Commit cc6e283

Browse files
authored
libvncserver/ws_decode: include endian.h in ws_decode.h
1 parent 2499602 commit cc6e283

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libvncserver/websockets.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@
3434
/* errno */
3535
#include <errno.h>
3636

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-
4337
#ifdef LIBVNCSERVER_HAVE_SYS_TYPES_H
4438
#include <sys/types.h>
4539
#endif

libvncserver/ws_decode.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515

1616
#else
1717

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+
1824
#define WS_NTOH64(n) htobe64(n)
1925
#define WS_NTOH32(n) htobe32(n)
2026
#define WS_NTOH16(n) htobe16(n)

0 commit comments

Comments
 (0)