diff options
author | wm4 <wm4@nowhere> | 2017-10-10 15:51:16 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-10 15:51:16 +0200 |
commit | 14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6 (patch) | |
tree | 14f622db59a3fd0265fd4e6541cedb6781879dde /audio/out/ao_oss.c | |
parent | 7c66c2bb75bb9f252dc976ab1805fecc610438e7 (diff) | |
download | mpv-14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6.tar.bz2 mpv-14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6.tar.xz |
Add checks for HAVE_GPL to various GPL-only source files
This should actually cover all of them, if you take into account that
some unchanged GPL source files include header files with such checks.
Also this was done already for the libaf derived code.
This is only for "safety" and to avoid misunderstandings.
Diffstat (limited to 'audio/out/ao_oss.c')
-rw-r--r-- | audio/out/ao_oss.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/out/ao_oss.c b/audio/out/ao_oss.c index eebd9622e7..72413cd9f8 100644 --- a/audio/out/ao_oss.c +++ b/audio/out/ao_oss.c @@ -49,6 +49,10 @@ #include "ao.h" #include "internal.h" +#if !HAVE_GPL +#error GPL only +#endif + // Define to 0 if the device must be reopened to reset it (stop all playback, // clear the buffer), and the device should be closed when unused. // Define to 1 if SNDCTL_DSP_RESET should be used to reset without close. |