mxcl/homebrew — pull request #17136 by rgov (2013-01-17 07:49:10+00:00)
Title: Update Library/Formula/socat.rb

I've added an additional patch to prevent conflicting definitions of `true` and `false` between stdbool.h and socat's mytypes.h.

Additionally, I'm not sure whether the `patches` routine was functioning as intended. I'm not a ruby expert, but it looks to me that when `build.devel?` returns true, the returned set of patches contained **only** the inline patch, and when it returns false, no patches are returned. I've changed the routine to return the full set of patches each time.

```
>> p = { :p0 => 'foo' }
=> {:p0=>"foo"}
>> p[:p1] = 'bar' if false
=> nil
>> p[:p1] = 'qux' if true
=> "qux"
```

Compilation succeeds on both release and devel variants.