Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / native_client_sdk / src / libraries / nacl_io / ossignal.h
blob4079d244c888848c6a8f7872efe83314e0a81aa3
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
5 #ifndef LIBRARIES_NACL_IO_OSSIGNAL_H_
6 #define LIBRARIES_NACL_IO_OSSIGNAL_H_
8 #if !defined(WIN23)
9 #include <signal.h>
11 #if defined(__APPLE__)
12 typedef void (*sighandler_t)(int);
13 #elif defined(__GLIBC__) || defined(__BIONIC__)
14 typedef __sighandler_t sighandler_t;
15 #else
16 typedef _sig_func_ptr sighandler_t;
17 #endif
18 #endif /* !WIN23 */
20 #endif /* LIBRARIES_NACL_IO_OSSIGNAL_H_ */