00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __KMOOD_MAIN_H__
00022 #define __KMOOD_MAIN_H__
00023
00024 #ifdef HAVE_CONFIG_H
00025 #include <config.h>
00026 #endif
00027
00028
00029 #define DEFAULT_KMOOD_STORAGE_DIR "/tmp/kmoods"
00030
00031
00032
00033
00034
00035
00036
00037
00038 #define UNUSED( x ) if ( 0 && (x) ) {}
00039
00040 #ifdef HAVE_ERRNO_H
00041 #include <errno.h>
00042 #endif
00043
00044 #ifdef HAVE_ASSERT_H
00045 #include <assert.h>
00046 #endif
00047
00048 #ifdef HAVE_STDLIB_H
00049 #include <stdlib.h>
00050 #endif
00051
00052
00053
00054 #ifdef HAVE_UNISTD_H
00055 #include <unistd.h>
00056 #ifdef HAVE_GETUID
00057 #else
00058 #error "Not ported yet to other Unixes from Linux"
00059 #endif
00060 #else
00061 #error "Not ported yet to other Unixes from Linux"
00062 #endif
00063
00064 #ifdef HAVE_SYS_TYPES_H
00065 #include <sys/types.h>
00066 #else
00067 #error "Not ported yet to other Unixes from Linux"
00068 #endif
00069
00070 #ifdef HAVE_PWD_H
00071 #include <pwd.h>
00072 #ifdef HAVE_GETPWUID
00073 #else
00074 #error "Not ported yet to other Unixes from Linux"
00075 #endif
00076 #else
00077 #error "Not ported yet to other Unixes from Linux"
00078 #endif
00079
00080 #endif