Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@
require 'mkmf'
require 'rbconfig'

$CFLAGS = case RUBY_VERSION
when /^1\.9/; '-DRUBY19'
when /^2\./; '-DRUBY19'
when /^3\./; '-DRUBY19'
else; ''
end

implementation = case RbConfig::CONFIG['host_os']
when /linux/i; 'shadow'
when /sunos|solaris/i; 'shadow'
Expand Down Expand Up @@ -42,7 +35,7 @@

if ok
if !have_func("sgetspent")
$CFLAGS += ' -DSOLARIS'
$CFLAGS = '-DSOLARIS'
end
end
when 'pwd'
Expand Down
4 changes: 0 additions & 4 deletions pwd/shadow.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
#include "rubyio.h"
#endif

#ifdef RUBY19
#define file_ptr(x) (x)->stdio_file
#else
#define file_ptr(x) (x)->f
#endif

static VALUE rb_mShadow;
static VALUE rb_mPasswd;
Expand Down
5 changes: 0 additions & 5 deletions shadow/shadow.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
#include "rubyio.h"
#endif

#ifdef RUBY19
#define file_ptr(x) rb_io_stdio_file(x)
#else
#define file_ptr(x) (x)->f
#endif

#define NUM_FIELDS 10

static VALUE rb_mShadow;
Expand Down