From: Dhruva Krishnamurthy <Dhruva.Krishnamurthy@in.bosch.com>
Subject: Fix for getopt1.c and getopt.c on SOLARIS
Date: Tue, 28 Jun 2005 15:04:14 +0530 [thread overview]
Message-ID: <yf8irzylt9l.fsf@rayserv.ban.in.bosch.com> (raw)
Hello,
I had to make a small modification to build CVS Emacs on SOLARIS
emacs-version:
GNU Emacs 22.0.50.2 (sparc-sun-solaris2.8, X toolkit) of 2005-06-28
The problem was in lib-src/getopt.c and lib-src/getopt1.c and my changes are
as follows (we should not be defining const to nothing because the
/usr/include/stdlib.h and /usr/include/stdio.h has a proto for getopt as
extern int getopt(int, char *const *, const char *). This has a conflict with
the proto on the getopt.c where the 'const' get removed). I know my hack is
just to get it working but not a clean fix. I request someone to incorporate
a cleaner fix.
--- getopt1.c 2005-06-23 18:36:41.555250000 +0530
+++ H:/stub/build/emacs/emacs/lib-src/getopt1.c 2005-06-27 12:23:45.000000000 +0530
@@ -31,7 +31,7 @@
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
#ifndef const
-#define const
+#define const const
#endif
#endif
--- getopt.c 2005-06-23 18:36:34.524000000 +0530
+++ H:/stub/build/emacs/emacs/lib-src/getopt.c 2005-06-27 12:23:35.000000000 +0530
@@ -34,7 +34,7 @@
/* This is a separate conditional since some stdc systems
reject `defined (const)'. */
# ifndef const
-# define const
+# define const const
# endif
#endif
with best regards,
dhruva
--
Name : Dhruva Krishnamurthy (dk)
Phone: +91-(0)80-22999190
Proud FSF member: #1935
reply other threads:[~2005-06-28 9:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yf8irzylt9l.fsf@rayserv.ban.in.bosch.com \
--to=dhruva.krishnamurthy@in.bosch.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).