mirror of
https://github.com/tmux/tmux.git
synced 2025-01-08 08:58:47 +00:00
htobe is not portable.
This commit is contained in:
parent
66369416fc
commit
7d91b4b90b
@ -23,7 +23,6 @@
|
||||
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <endian.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -32,6 +31,13 @@
|
||||
#include "compat.h"
|
||||
#include "imsg.h"
|
||||
|
||||
#define htobe16 htons
|
||||
#define htobe32 htonl
|
||||
#define htobe64 htonll
|
||||
#define be16toh ntohs
|
||||
#define be32toh ntohl
|
||||
#define be64toh ntohll
|
||||
|
||||
static int ibuf_realloc(struct ibuf *, size_t);
|
||||
static void ibuf_enqueue(struct msgbuf *, struct ibuf *);
|
||||
static void ibuf_dequeue(struct msgbuf *, struct ibuf *);
|
||||
|
Loading…
Reference in New Issue
Block a user