-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Hades32/windows-compat
allow compilation on windows
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package can | ||
|
||
// TODO(brutella) implement | ||
const AF_CAN = -1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package can | ||
|
||
import ( | ||
"fmt" | ||
"net" | ||
) | ||
|
||
func NewReadWriteCloserForInterface(i *net.Interface) (ReadWriteCloser, error) { | ||
return nil, fmt.Errorf("Binding to can interface no supported on Windows") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package can | ||
|
||
import "syscall" | ||
|
||
// NewSockaddr returns a socket address based on the protocol and interface index. | ||
// TODO(brutella) This method has no implementation. | ||
func NewSockaddr(proto uint16, Ifindex int) syscall.Sockaddr { | ||
return &syscall.SockaddrUnix{} | ||
} |