diff options
author | Richard M. Stallman <rms@gnu.org> | 1992-08-31 18:00:11 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1992-08-31 18:00:11 +0000 |
commit | efd241cc2df193be3863f18eda27c071bb866cc4 (patch) | |
tree | f339ad2a0ee2fe57e9ff01aca1dce014a2bfac04 /src/emacs.c | |
parent | 6b2154dedbb0c7a0cc49e403154f8c3efbce6d1e (diff) | |
download | emacs-efd241cc2df193be3863f18eda27c071bb866cc4.tar.gz emacs-efd241cc2df193be3863f18eda27c071bb866cc4.tar.bz2 emacs-efd241cc2df193be3863f18eda27c071bb866cc4.zip |
(__do_global_ctors, __do_global_ctors_aux): New dummy fns.
(__CTOR_LIST__, __DTOR_LIST__): New dummy variables.
Diffstat (limited to 'src/emacs.c')
-rw-r--r-- | src/emacs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 5b2f61674c6..3b2e241f38f 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -183,6 +183,19 @@ extern noshare char **environ; #endif /* LINK_CRTL_SHARE */ #endif /* VMS */ +/* We don't include crtbegin.o and crtend.o in the link, + so these functions and variables might be missed. + Provide dummy definitions to avoid error. + (We don't have any real constructors or destructors.) */ +#ifdef __GNUC__ +__do_clobal_ctors () +{} +__do_clobal_ctors_aux () +{} +char * __CTOR_LIST__[1] = { (char *) (-1) }; +char * __DTOR_LIST__[1] = { (char *) (-1) }; +#endif /* __GNUC__ */ + /* ARGSUSED */ main (argc, argv, envp) int argc; |