Skip to content

Commit

Permalink
fix iOS 6.0 POSIX process header including
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrys committed Nov 29, 2012
1 parent 5cc9fc9 commit 62aabd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/shared/ruby/iphone/ruby/config.h
Expand Up @@ -213,11 +213,11 @@

#if defined(__APPLE__) && !defined(RHODES_EMULATOR)
#import <Availability.h>
#ifndef __IPHONE_6_0
//#ifndef __IPHONE_6_0
#define HAVE_INITGROUPS 1
#define HAVE_GETGROUPS 1
#define HAVE_SETGROUPS 1
#endif
//#endif
#else
#define HAVE_INITGROUPS 1
#define HAVE_GETGROUPS 1
Expand Down
8 changes: 8 additions & 0 deletions platform/shared/ruby/process.c
Expand Up @@ -16,6 +16,14 @@
#include "ruby/util.h"
#include "vm_core.h"


#if defined(__APPLE__) && !defined(RHODES_EMULATOR)
#import <Availability.h>
#ifdef __IPHONE_6_0
#include <grp.h>
#endif
#endif

#include <stdio.h>
#include <errno.h>
#include <signal.h>
Expand Down

0 comments on commit 62aabd7

Please sign in to comment.