summaryrefslogtreecommitdiff
path: root/lib/csu/extern.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-01-21 04:14:20 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-01-21 04:14:20 +0000
commit00667aa60bb8e9146403094fe9e055d3abae4a4a (patch)
tree2e0031fe002d95932116b3f653cbc9e09038289c /lib/csu/extern.h
parentf2e4d739d2eb7246cb13411e93bcc99bdaec851a (diff)
Pull in declarations for main() and __init() to make clang happy.
Mark __init() as hidden ok kettenis@ deraadt@
Diffstat (limited to 'lib/csu/extern.h')
-rw-r--r--lib/csu/extern.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/csu/extern.h b/lib/csu/extern.h
index 775438fde0c..d2087e0fa4e 100644
--- a/lib/csu/extern.h
+++ b/lib/csu/extern.h
@@ -13,12 +13,9 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-struct ps_strings;
-extern void ___start(int argc, char **argv, char **envp, void (*cleanup)(void),
- const void *obj, struct ps_strings *ps_strings);
-extern void __init(void);
-extern int main(int argc, char *argv[], char *envp[]);
+void __init(void) __dso_hidden;
+int main(int argc, char *argv[], char *envp[]);
typedef void (*init_f)(void);