| 1 | /* |
| 2 | * Copyright (c) 2007, 2009 Moritz Grimm <[email protected]> |
| 3 | * |
| 4 | * Permission to use, copy, modify, and distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES |
| 9 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF |
| 10 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR |
| 11 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 12 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN |
| 13 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
| 14 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 15 | */ |
| 16 | |
| 17 | #ifndef __EZSTREAM_H__ |
| 18 | #define __EZSTREAM_H__ |
| 19 | |
| 20 | #ifdef HAVE_CONFIG_H |
| 21 | # include "config.h" |
| 22 | #endif |
| 23 | |
| 24 | #ifdef HAVE_SYS_TYPES_H |
| 25 | # include <sys/types.h> |
| 26 | #endif /* HAVE_SYS_TYPES_H */ |
| 27 | #ifdef HAVE_SYS_TIME_H |
| 28 | # include <sys/time.h> |
| 29 | #endif /* HAVE_SYS_TIME_H */ |
| 30 | #include <time.h> |
| 31 | |
| 32 | #include <ctype.h> |
| 33 | #include <errno.h> |
| 34 | #include <fcntl.h> |
| 35 | #if defined(HAVE_LIBGEN_H) && !defined(__linux__) |
| 36 | # include <libgen.h> |
| 37 | #endif /* HAVE_LIBGEN_H && !__linux__ */ |
| 38 | #include <limits.h> |
| 39 | #ifdef HAVE_PATHS_H |
| 40 | # include <paths.h> |
| 41 | #endif /* HAVE_PATHS_H */ |
| 42 | #include <stdarg.h> |
| 43 | #include <stdio.h> |
| 44 | #include <stdlib.h> |
| 45 | #include <string.h> |
| 46 | #ifdef HAVE_UNISTD_H |
| 47 | # include <unistd.h> |
| 48 | #endif |
| 49 | |
| 50 | #include "cfg.h" |
| 51 | #include "log.h" |
| 52 | |
| 53 | #ifndef _PATH_DEVNULL |
| 54 | # define _PATH_DEVNULL "/dev/null" |
| 55 | #endif /* !_PATH_DEVNULL */ |
| 56 | |
| 57 | #ifndef PATH_MAX |
| 58 | # define PATH_MAX 256 |
| 59 | #endif /* !PATH_MAX */ |
| 60 | |
| 61 | #endif /* __EZSTREAM_H__ */ |