From a8a497e431aaaefd5ce4921467ba4f61b8262693 Mon Sep 17 00:00:00 2001 From: "roberto@sirius" Date: Thu, 11 Feb 2010 10:36:55 +0100 Subject: [PATCH] portability fix on spooler code --- spooler.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/spooler.c b/spooler.c index ad2f4563..f7c56740 100644 --- a/spooler.c +++ b/spooler.c @@ -129,9 +129,6 @@ void spooler (PyObject * uwsgi_module) { sdir = opendir ("."); if (sdir) { while ((dp = readdir (sdir)) != NULL) { -#ifndef __sun__ - if (!strncmp ("uwsgi_spoolfile_on_", dp->d_name, 19) && dp->d_type == DT_REG) { -#else if (!strncmp ("uwsgi_spoolfile_on_", dp->d_name, 19)) { struct stat sf_lstat; if (lstat (dp->d_name, &sf_lstat)) { @@ -140,7 +137,6 @@ void spooler (PyObject * uwsgi_module) { if (!S_ISREG (sf_lstat.st_mode)) { continue; } -#endif if (!access (dp->d_name, R_OK | W_OK)) { fprintf (stderr, "managing spool request %s...\n", dp->d_name);