/rusxmms/librcc

To get this branch, use:
bzr branch http://suren.me/webbzr/rusxmms/librcc

« back to all changes in this revision

Viewing changes to src/rccexternal.c

  • Committer: Suren A. Chilingaryan
  • Date: 2014-06-12 17:03:18 UTC
  • Revision ID: csa@dside.dyndns.org-20140612170318-268tcqj2i99rfbgr
Mingw compatibility fixes by trialuser

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
#endif /* HAVE_UNISTD_H */
71
71
 
72
72
int rccExternalInit() {
 
73
#ifndef _WIN32                  // WNOHANG is not defined
73
74
#ifdef HAVE_UNISTD_H
74
75
# ifdef HAVE_SIGNAL_H
75
76
    struct sigaction act;
111
112
    }
112
113
# endif /* HAVE_SYS_STAT_H */
113
114
#endif /* HAVE_UNISTD_H */
 
115
#endif /* _WIN32 */
114
116
    _exit(1);
115
117
}
116
118
 
117
119
void rccExternalFree() {
 
120
#ifndef _WIN32                  // WNOHANG is not defined
118
121
#ifdef HAVE_UNISTD_H
119
122
    int retry;
120
123
    pid_t res;
135
138
    pid = (pid_t)-1;
136
139
    if (addr) free(addr);
137
140
#endif /* HAVE_UNISTD_H */
 
141
#endif /* _WIN32 */
138
142
}
139
143
 
140
144
#ifdef HAVE_SYS_SELECT_H