dix-config.h needs to be included at the very top of all sources,
but it shouldn't be included from other headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
No need for weird hacks trying create nameless unions (which aren't
even done consequently), just give them trivial names and done.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
putenv() is deprecated due several drawbacks: the passed buffer becomes
part of the environment (not copied), thus the caller needs to allocate
a permanent buffer first - and has no way to know whether it might
become used later. And it has to fill in the new entry in the correct
form (<name>+"="+<value>)
setenv() instead is damn simple: pass env variable name and value
separately, and no need to care what's going on under the hood.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
The dix-config.h file needs to be included by sources at the very
top, it shouldn't be included by other headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This header needs to be included at the top of source files,
should not be done from other headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
BSD compilers dont like declarations directly following labels
(eg. within a switch/case statement), thus we need to scrope those.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
That's OS specific, and the fallback implementations are in os/,
so it's better to also move the detection there.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
It needs to be included from the very top of source files anyways,
should not be done from individual headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
The parameters client and mask are set within the function, but
otherwise unused, so there's no reason to pass them in the first place.
Since this is a static function, ABI remains unaffected.
Signed-off-by: Aggelos Tselios <aggelostselios777@gmail.com>
These never seemed to be actually active, ever. Since nobody ever seemed
to have an actual desire to use an xf86-style config file for Xwin,
let's just drop all that ancient dead code.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This header needs to be included at the top of source files,
should not be done from other headers.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
Document that this particular include is just a workaround for
a bug in libxfont2.h, which forgot to include this header.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
All xserver sources need to include it at the very top anyways, so
no need to clutter public SDK headers with extra complexity.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This symbol is never defined, so that code path isn't needed.
Disabling "partial network" (thus, not arborting when not all
requested interfaces can't be bound) can be done via command line.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
All xserver sources need to include it at the very top anyways, so
no need to clutter public SDK headers with extra complexity.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
We don't wanna use VLAs, because they're inherently unsafe.
Since the values[] array can never be bigger than attrs,
just use attr's size here.
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>