Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/audio/alsa-utils/files/patch-aplay_aplay.c
16151 views
1
--- aplay/aplay.c.orig 2020-02-19 12:02:10 UTC
2
+++ aplay/aplay.c
3
@@ -49,7 +49,6 @@
4
#include <sys/time.h>
5
#include <sys/stat.h>
6
#include <sys/types.h>
7
-#include <endian.h>
8
#include "gettext.h"
9
#include "formats.h"
10
#include "version.h"
11
@@ -70,6 +69,12 @@
12
#define be16toh(x) __be16_to_cpu(x)
13
#define le32toh(x) __le32_to_cpu(x)
14
#define be32toh(x) __be32_to_cpu(x)
15
+#endif
16
+
17
+#ifndef _LARGEFILE64_SOURCE
18
+/* assume modern system */
19
+typedef off_t off64_t;
20
+#define lseek64 lseek
21
#endif
22
23
#define DEFAULT_FORMAT SND_PCM_FORMAT_U8
24
25