Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
fix duplicate symbols in cc_signal
Browse files Browse the repository at this point in the history
  • Loading branch information
kevyang committed May 16, 2016
1 parent 05c6e1e commit 6ecc318
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/cc_signal.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct signal {
* - SIGSEGV(debug): print stacktrace before reraise segfault again
* - SIGPIPE(channel): ignored, this prevents service from exiting when pipe closes
*/
struct signal signals[SIGNAL_MAX]; /* there are only 31 signals from 1 to 31 */
extern struct signal signals[SIGNAL_MAX]; /* there are only 31 signals from 1 to 31 */

int signal_override(int signo, char *info, int flags, uint32_t mask, sig_fn handler);

Expand Down
2 changes: 2 additions & 0 deletions src/cc_signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <signal.h>
#include <string.h>

struct signal signals[SIGNAL_MAX];

#ifndef CC_HAVE_SIGNAME
const char* sys_signame[SIGNAL_MAX + 1] = {
"UNDEFINED",
Expand Down

0 comments on commit 6ecc318

Please sign in to comment.