From: Pierre Habouzit Date: Wed, 28 Nov 2007 15:02:42 +0000 (+0100) Subject: Enable D X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=ba96e8b86330fb28f25aae2059b732cd64254015;p=apps%2Fmadmutt.git Enable D Signed-off-by: Pierre Habouzit --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d78ab7e..a37c4cb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,7 +327,7 @@ ADD_EXECUTABLE(madmutt ${madmuttsrc}) TARGET_LINK_LIBRARIES(madmutt ui mx lua imap mime sys lib) SET_TARGET_PROPERTIES(madmutt PROPERTIES LINK_FLAGS "${MUTTLIBS}" - # LINKER_LANGUAGE D + LINKER_LANGUAGE D ) # generate_files hack {{{ diff --git a/main.c b/main.c index 1db6a40..f1d23b0 100644 --- a/main.c +++ b/main.c @@ -172,6 +172,8 @@ static void mutt_nocurses_error (const char *fmt, ...) fputc('\n', stderr); } +extern void gc_init(void); + int main (int argc, char **argv) { char folder[_POSIX_PATH_MAX] = ""; @@ -187,11 +189,12 @@ int main (int argc, char **argv) int i; int explicit_folder = 0; + gc_init(); + /* initialize random number for tmp file creation */ srand48((unsigned int) time (NULL)); - + /* sanity check against stupid administrators */ - if (getegid () != getgid ()) { fprintf (stderr, "%s: I don't want to run with privileges!\n", argv[0]); exit (1);