Fix Linux rpc problems with new glibc
[oweals/cde.git] / cde / config / imake / ccimake.c
index db76b5894b442130320288b565ffbcf44820772e..6995c788a0cc912fb5476f8e01c7ab6a81397600 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -57,10 +57,11 @@ in this Software without prior written authorization from The Open Group .
 #endif
 
 #include <stdlib.h>
+#include <unistd.h>
 
-main()
+int main(void)
 {
-       write(1, imake_ccflags, sizeof(imake_ccflags) - 1);
-       exit(0);
+       ssize_t ret = write(1, imake_ccflags, sizeof(imake_ccflags) - 1);
+       return EXIT_SUCCESS;
 }