dtcm: Resolve CID 87822
[oweals/cde.git] / cde / programs / dtcm / server / repeat.c
index 1484236477055c204d79f84ce813c55ccdbfb378..dcc6fec696c4714be4575bff753044c6eb2eaf4f 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these librararies and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $XConsortium: repeat.c /main/7 1996/11/21 19:46:39 drk $ */
 /*
  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
@@ -10,6 +32,9 @@
 #include <stdio.h>
 #define XOS_USE_NO_LOCKING
 #define X_INCLUDE_TIME_H
+#if defined(linux)
+#undef SVR4
+#endif
 #include <X11/Xos_r.h>
 #include "csa.h"
 #include "rtable4.h"
@@ -51,7 +76,7 @@ static int monthsecs[12] = {
        31*daysec,      30*daysec,      31*daysec
 };
 
-extern int monthdays[12] = {
+int monthdays[12] = {
        31,     28,     31,
        30,     31,     30,
        31,     31,     30,