Index: ofono-1.12/plugins/gobi.c
===================================================================
--- ofono-1.12.orig/plugins/gobi.c	2012-12-19 14:28:44.000000000 -0500
+++ ofono-1.12/plugins/gobi.c	2013-01-15 17:12:37.000000000 -0500
@@ -313,6 +313,10 @@
 	if (!device)
 		return -EINVAL;
 
+#ifndef O_CLOEXEC
+# define O_CLOEXEC     02000000
+#endif
+
 	fd = open(device, O_RDWR | O_NONBLOCK | O_CLOEXEC);
 	if (fd < 0)
 		return -EIO;
