]> granicus.if.org Git - cronie/commitdiff
Bugfix: PATH_MAX is defined in limits.h
authorSATOH Fumiyasu <fumiyas@osstech.co.jp>
Thu, 26 Jun 2008 08:38:27 +0000 (10:38 +0200)
committerMarcela Mašláňová <mmaslano@redhat.com>
Thu, 26 Jun 2008 08:38:27 +0000 (10:38 +0200)
Signed-off-by: Marcela Mašláňová <mmaslano@redhat.com>
src/macros.h
src/misc.c

index fd4d9fa0de0557b5262640243068d3b1d3f6fd34..4981a018a002e006cf831f3dfc597845084022b0 100644 (file)
@@ -18,7 +18,9 @@
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
-
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif
        /* these are really immutable, and are
         *   defined for symbolic convenience only
         * TRUE, FALSE, and ERR must be distinct
index 2099c58deced51e85cc489d0bf8f1c2feec4ed7d..cfe7aa2b31144ee303c8660da0459ab4aa5a7749 100644 (file)
@@ -24,7 +24,6 @@
  */
 
 #include <cron.h>
-#include <limits.h>
 #ifdef WITH_AUDIT
 #include <libaudit.h>
 #endif