Skip to content

Commit

Permalink
iiod: Remove non-standard includes from ops.h
Browse files Browse the repository at this point in the history
Move the <sys/socket.h> to where it's actually required, in
interpreter.c (and only for regular IIOD).

Remove the <endian.h> include which doesn't seem to be needed at all.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
  • Loading branch information
pcercuei committed Jan 25, 2024
1 parent 5061946 commit 4cf3cbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions iiod/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
#include <pthread.h>
#include <sys/eventfd.h>
#endif
#if !TINYIIOD
#include <sys/socket.h>
#endif

#if WITH_AIO
static ssize_t async_io(struct parser_pdata *pdata, void *buf, size_t len,
Expand Down
2 changes: 0 additions & 2 deletions iiod/ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
#include "../iio-config.h"
#include "queue.h"

#include <endian.h>
#include <errno.h>
#include <iio/iio.h>
#include <iio/iio-backend.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
#include <unistd.h>

#if WITH_AIO
Expand Down

0 comments on commit 4cf3cbc

Please sign in to comment.